Summary: | [MapLab-MapBrowser]Query tool generates a PHP fatal error | ||
---|---|---|---|
Product: | MapLab | Reporter: | Normand Savard <nsavard@mapgears.com> |
Component: | Mapbrowser | Assignee: | Zak James <zjames@dmsolutions.ca> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | maplab-dev@lists.maptools.org |
Priority: | P2 | ||
Version: | 3.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: | |||
Attachments: |
projects.zip-Application with query tool that causes a fatal error
projectsv2.zip-Fatal error with query (20040721 version). |
couldn't recreate this on any of my browsers; the feature works as it should. Can someone verify on windows?
Steps to reproduce: 1. Load MapLab. 2. Select MapEdit. 3. Open the tutorial map. 4. Save this map under a new name. 5. Add a projection object to this map with the following information: "init=epsg:42304". 6. Save this map. 7. Select MapBrowser. 8. In the "Data Stores" section, click the link to add a server. 9. Add this server: "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?". 10. Close the "Servers manager" window. 11. Add the "Parks" layer. 12. Click on the "Query" tool. 13. Click in the map preview. 14. Fatal errors is displayed.
I think this bug is related to the WMS connection because when I do a query with the tutorial map as is, it works as expected.
Created an attachment (id=45) [details]
projects.zip-Application with query tool that causes a fatal error
removed the metadata deletion operation that was causing this problem and it avoids the fatal error, allowing queries to proceed. Need to look into this more carefully so I'm leaving it open but please comment on whether this solves the problem under win xp.
The error is still there in the 20040721 maplab 2.2 version and ms4w 0.9.
Created an attachment (id=46) [details]
projectsv2.zip-Fatal error with query (20040721 version).
I checked in the code and the following line "$oLayer->removemetadata( 'wms_sld_body' );" is still active. I commented that line and error message disappear.
which package did you use? Maybe I missed a step in packaging
fixed the second occurence in the wrapper map_query.php file
Verified on Windows XP ms4w 0.9 and maplab 2.2 20040720.