[mapguide-users] Custom scripts not working

Dave Wilson dave.wilson at autodesk.com
Wed May 21 18:49:07 EDT 2008


If this is happening with the sample data then something else is going on. Did you upgrade the old repository or did you import packages from the old to the new instance?

Is the data uploaded to the server or is it unmanaged?

It’s possible something is wrong in the configuration, but the question is what? Could there be some kind of permissions problem with folders the data is in? When configuring the sample apps did you recreate the virtual directory? Was there MapGuide php dlls from the prior release left in the folder the sample apps point to?

Dave

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Don C. MacGregor
Sent: Wednesday, May 21, 2008 4:06 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Custom scripts not working

Below is the schema for a single SDF file.
(please note: samples for MGOS 2.0 are also not working eventhough I have renamed the folder of MGOS 1.2)

−
 <xs:schema targetNamespace="http://fdo.osgeo.org/schemas/feature/SDF_2_Schema" elementFormDefault="qualified" attributeFormDefault="unqualified">
−
 <xs:annotation>
<xs:documentation>Schema of the Spatial Data File format version 2.</xs:documentation>
</xs:annotation>
−
 <xs:element name="TOWNSHIPS" type="SDF_2_Schema:TOWNSHIPSType" abstract="false" substitutionGroup="gml:_Feature">
−
 <xs:key name="TOWNSHIPSKey">
<xs:selector xpath=".//TOWNSHIPS"/>
<xs:field xpath="Autogenerated_SDF_ID"/>
</xs:key>
</xs:element>
−
 <xs:complexType name="TOWNSHIPSType" abstract="false" fdo:geometryName="Data">
−
 <xs:complexContent>
−
 <xs:extension base="gml:AbstractFeatureType">
−
 <xs:sequence>
−
 <xs:element name="Data" type="gml:AbstractGeometryType" fdo:hasMeasure="false" fdo:hasElevation="false" fdo:geometricTypes="surface " fdo:geometryTypes="polygon multipolygon curvepolygon multicurvepolygon ">
−
 <xs:annotation>
<xs:documentation>The geometry of the object</xs:documentation>
</xs:annotation>
</xs:element>
−
 <xs:element name="Name" minOccurs="0">
−
 <xs:annotation>
<xs:documentation>The name of the object</xs:documentation>
</xs:annotation>
−
 <xs:simpleType>
−
 <xs:restriction base="xs:string">
<xs:maxLength value=""/>
</xs:restriction>
</xs:simpleType>
</xs:element>
−
 <xs:element name="Url" minOccurs="0">
−
 <xs:annotation>
<xs:documentation>The url of the object</xs:documentation>
</xs:annotation>
−
 <xs:simpleType>
−
 <xs:restriction base="xs:string">
<xs:maxLength value=""/>
</xs:restriction>
</xs:simpleType>
</xs:element>
−
 <xs:element name="Key" minOccurs="0">
−
 <xs:annotation>
<xs:documentation>The key of the object</xs:documentation>
</xs:annotation>
−
 <xs:simpleType>
−
 <xs:restriction base="xs:string">
<xs:maxLength value=""/>
</xs:restriction>
</xs:simpleType>
</xs:element>
−
 <xs:element name="Autogenerated_SDF_ID" fdo:readOnly="true" fdo:autogenerated="true">
−
 <xs:simpleType>
<xs:restriction base="fdo:int32"/>
</xs:simpleType>
−
 <xs:annotation>
<xs:documentation>Autogenerated identity property</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>

Dave Wilson <dave.wilson at autodesk.com> wrote:
Ok the error suggests something really bad is happening. After getting an unclassified exception it’s probably a good idea to restart the server as there may be a possibility of memory corruption.

I would try you test again and see if you can duplicate the error. If you can isolate it to a particular layer / feature source, can you either post the results of a DescribeSchema from the http://mapguide/mapagent.index.html pages under Feature Service for the feature source so that we can see if there is anything special about the data types involved. If this happens for any data then something else more fundamental is wrong.

Dave

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Don C. MacGregor
Sent: Wednesday, May 21, 2008 2:54 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Custom scripts not working

I am not sure about the exact cause. Below are the line from error log. There is only one PHP on my computer that was added to system path.
Thanks Dave!

 Error: An unclassified exception occurred.
 StackTrace:
  - MgRenderingServiceHandler.ProcessOperation line 83 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\rendering\RenderingServiceHandler.cpp
  - MgOpQueryFeatures.Execute line 125 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\rendering\OpQueryFeatures.cpp
  - MgServerRenderingService.QueryFeatures line 652 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\rendering\ServerRenderingService.cpp
  - MgServerRenderingService.RenderForSelection line 1299 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\rendering\ServerRenderingService.cpp
  - MgServerSelectFeatures.SelectFeatures line 249 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\feature\ServerSelectFeatures.cpp An unclassified exception occurred.


Dave Wilson <dave.wilson at autodesk.com> wrote:
Do you have multiple versions of PHP on your system? Is PHP in your system path?

Again if you turn on PHP error  logging or display do you see any errors? Are there any MapGuide errors in the error log?

Dave

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Don C. MacGregor
Sent: Wednesday, May 21, 2008 1:55 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Custom scripts not working

Many thanks Dave for your email.
Easiest example would be Ad Hoc Queries http://data.mapguide.com/mapguide/gt/index.php they used to run on my computer when was running MGOS 1.2 but once I upgraded to 2.0.1 they dont work. Although properties listbox populting all the fields of the selected layer but when I run a query it doent work (Please note I didnt even edit the PHP files).


Dave Wilson <dave.wilson at autodesk.com> wrote:
You would have to provide some details on what your custom script does? Does it reference any API that may have changed? Do you get an PHP errors? Have you enabled PHP error logging or display?

Regards,
Dave

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Don C. MacGregor
Sent: Wednesday, May 21, 2008 10:13 AM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Custom scripts not working

Hi all,
I recently upgraded MGOS 1.2 to 2.0.1 everything works just fine except none of my custom PHP sripts is working. I am using Win2K3, IIS6 and PHP. Does anyone know any possible reason?
Thanks

________________________________
Ask a question on any topic and get answers from real people. Go to Yahoo! Answers.<http://ca.answers.yahoo.com/>
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


________________________________
Ask a question on any topic and get answers from real people. Go to Yahoo! Answers.<http://ca.answers.yahoo.com/>
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


________________________________
Looking for the perfect gift? Give the gift of Flickr!<http://www.flickr.com/gift/>
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

________________________________
[http://us.i1.yimg.com/us.yimg.com/i/ca/iotg_search.jpg]Yahoo! Canada Toolbar : Search from anywhere on the web and bookmark your favourite sites. Download it now! <http://ca.toolbar.yahoo.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080521/eb163409/attachment.html


More information about the mapguide-users mailing list