Bug 566 - [MapLab-MapBrowser]Query tool generates a PHP fatal error
: [MapLab-MapBrowser]Query tool generates a PHP fatal error
Status: VERIFIED FIXED
: MapLab
Mapbrowser
: 3.0
: PC Windows XP
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-07-20 11:59 by
Modified: 2004-07-22 09:08 (History)


Attachments
projects.zip-Application with query tool that causes a fatal error (162.54 KB, application/octet-stream)
2004-07-20 23:37, Normand Savard
Details
projectsv2.zip-Fatal error with query (20040721 version). (162.47 KB, application/octet-stream)
2004-07-21 08:57, Normand Savard
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-07-20 11:59:11
Using the query tool in the MapBrowser window generates a PHP fatal error.  To
reproduce that just follow the tutorial in the "MapBrowser/Adding a Layer When
the Projection has been Set" step 5.

Mozilla 1.6 and IE 6
Windows XP home
MapLab 2.2 20040716


-------------
MS error
Fatal error: [MapServer Error]: msQueryByRect(): No matching record(s) found. in
E:\ms4w\apps\maplab-2.2\htdocs\common\wrapper\map_query.php on line 376
------- Comment #1 From 2004-07-20 15:15:41 -------
couldn't recreate this on any of my browsers; the feature works as it should.
Can someone verify on 
windows?
------- Comment #2 From 2004-07-20 16:49:37 -------
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.
------- Comment #3 From 2004-07-20 19:55:50 -------
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.
------- Comment #4 From 2004-07-20 23:37:33 -------
Created an attachment (id=45) [details]
projects.zip-Application with query tool that causes a fatal error
------- Comment #5 From 2004-07-21 00:48:20 -------
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.
------- Comment #6 From 2004-07-21 08:55:35 -------
The error is still there in the 20040721 maplab 2.2 version and ms4w 0.9.
------- Comment #7 From 2004-07-21 08:57:19 -------
Created an attachment (id=46) [details]
projectsv2.zip-Fatal error with query (20040721 version).
------- Comment #8 From 2004-07-21 09:06:01 -------
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.
------- Comment #9 From 2004-07-21 09:10:03 -------
which package did you use? Maybe I missed a step in packaging
------- Comment #10 From 2004-07-21 09:58:25 -------
fixed the second occurence in the wrapper map_query.php file
------- Comment #11 From 2004-07-22 09:08:03 -------
Verified on Windows XP ms4w 0.9 and maplab 2.2 20040720.