Bug 557 - [MapLab-MapEdit]Adding a legend generates PHP errors
: [MapLab-MapEdit]Adding a legend generates PHP errors
Status: VERIFIED FIXED
: MapLab
map editor
: 3.0
: PC Linux
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-07-19 15:15 by
Modified: 2004-07-20 19:26 (History)


Attachments
tutorial_bug557.zip-Map with Legend error (2.31 KB, application/octet-stream)
2004-07-19 15:56, Normand Savard
Details


Note

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


Description From 2004-07-19 15:15:02
Add a legend to the map in MapEdit and open the map preview generates PHP
errors.

Steps to reproduce:

1.  Load MapLab.
2.  Select MapEdit.
3.  Select Legend in the tree list.
4.  Change width and size of the legend in the "Objects Properties" window.
5.  Apply changes.
6.  Open the map preview (disable ROSA).
7.  Errors appear.

Fedora Core 2
Mozilla 1.6
MapLab 2.2 20040716


---------------
PHP error:
[19-Jul-2004 14:56:47] PHP Warning:  [MapServer Error]: loadLegend(): Parsing
error near (SIZE):(line 84)
 in /home/nsavard/proj/maplab-2.2/htdocs/common/wrapper/map_session.php on line
215
[19-Jul-2004 14:56:47] PHP Warning:  Failed to open map file
/tmp/ms_tmp//40fc121cc509b.map in
/home/nsavard/proj/maplab-2.2/htdocs/common/wrapper/map_session.php on line 215
[19-Jul-2004 14:56:47] PHP Warning:  [MapServer Error]: loadLegend(): Parsing
error near (SIZE):(line 84)
 in /home/nsavard/proj/maplab-2.2/htdocs/common/wrapper/map_session.php on line
215
[19-Jul-2004 14:56:47] PHP Warning:  [MapServer Error]: loadLegend(): Parsing
error near (SIZE):(line 84)
 in /home/nsavard/proj/maplab-2.2/htdocs/common/wrapper/map_session.php on line
215
[19-Jul-2004 14:56:47] PHP Warning:  Failed to open map file
/tmp/ms_tmp//40fc121cc509b.map in
/home/nsavard/proj/maplab-2.2/htdocs/common/wrapper/map_session.php on line 215
[19-Jul-2004 14:56:47] PHP Fatal error:  Call to a member function on a
non-object in /home/nsavard/proj/maplab-2.2/htdocs/mapedit/preview.php on line
308
------- Comment #1 From 2004-07-19 15:56:10 -------
Created an attachment (id=44) [details]
tutorial_bug557.zip-Map with Legend error
------- Comment #2 From 2004-07-19 16:36:59 -------
removed size attribute for legend. I'm not sure where this came from. Was it
ever supported by 
mapserver? Anyway, it's not supported now. Odd that nobody found this problem
earlier. 
------- Comment #3 From 2004-07-19 19:18:44 -------
Reproduced on Windows XP home ms4w 0.9 maplab 2.2
------- Comment #4 From 2004-07-19 21:39:10 -------
the fix is not incorporated into any of the packaged versions yet. The
workaround is to avoid using the 
inapplicable parameters.
------- Comment #5 From 2004-07-20 08:16:59 -------
I understood clearly that the fix is not incorporated (comment #4).  I just want
to let know the status of this bug on Windows.
------- Comment #6 From 2004-07-20 19:26:09 -------
Verified on Windows XP ms4w and IE 20040720.