Opened 18 years ago

Last modified 15 years ago

#1793 new defect

POSITION (null) after mapfile write — at Initial Version

Reported by: stuarteve@… Owned by: mapserverbugs
Priority: high Milestone: 6.0 release
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc:

Description

After upgrading to the CVS version (4.9?) of mapserver (30th May 2006) - I have
discovered a bug in the $map->save() function. In order to pass the map object
between page reloads we save it out to a temporary file and then reintialise it
again on the next page reload. Using the 4.8.3 mapscript this seemed to work
fine - however, in the CVS version it seems to put a POSITION (null) in the
label section (even when it is set using $labelObj->set("position", "CC");)

This causes the map to not load and it crashes out with the error:

<b>Warning</b>:  Failed to open map file
/srv/www/htdocs/ark/mapserver/tmp/5c7975a60654928b0921582c87969c4c.map in
<b>/srv/www/htdocs/ark/php/map/getmap.php</b> on line <b>62</b><br />

Change History (1)

by stuarteve@…, 18 years ago

sample mapfile as created using $map->save()

Note: See TracTickets for help on using tickets.