Hi Jay,<br>
<br>
Firstly, thanks for replying!<br>
Secondly...<br>
<br>
- What version of MapServer and Chameleon did you upgrade from?<br>
ms4w 1.0.3 and chameleon 2.0 to ms4w 1.2.1 and chameleon 2.2<br>
<br>
- Do your two working applications use a different output format from<br>
those that have stopped working?<br>
They do not contain an explicit output format. (But neither did the non-working apps.)<br>
<br>
- Can you post the first 20-25 lines of your MapFile?<br>
Please see below. <br>
<br>
I think we have actually resolved the problem, but I am really not sure
how. We did some copying and pasting from other map files and
that seemed to do it, but I get the feeling that not all of the new
code was necessary to fix the problem. The two versions of
the new/old portions code are pasted below. While it is no longer
critical, my colleagues and I could really benefit from an explanation
of why the new code works, while the other code doesn't. Perhaps
this is more of a MapServer list question, after all, but I thought I
would continue the thread here since it was started in this list.<br>
<br>
I really appreciate your help!<br>
<br>
Thanks,<br>
Jennifer Zeisloft<br>
UW-Sea Grant<br>
<br>
Mapfile Code OLD (worked in old install, not working in new install))-------------------------------------------------<br>
NAME DEMO<br>
STATUS ON<br>
SIZE 400 300<br>
SYMBOLSET ../etc/symbols.sym<br>
EXTENT -93.04 39.66 -75.14 50.50<br>
UNITS DD<br>
SHAPEPATH "../data/great_lakes"<br>
IMAGECOLOR 255 255 255<br>
IMAGETYPE PNG24<br>
FONTSET ../etc/fonts.txt<br>
<br>
#<br>
# Start of web interface definition<br>
#<br>
WEB<br>
MINSCALE 20000<br>
MAXSCALE 100000000<br>
#<br>
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root <br>
# of the drive where the .MAP file resides.<br>
#<br>
IMAGEPATH "/ms4w/tmp/ms_tmp/" <br>
IMAGEURL "/ms_tmp/"<br>
# LOG "/tmp/gmap.log"<br>
METADATA<br>
END<br>
END #Web<br>
<br>
#<br>
# Start of reference map<br>
#<br>
REFERENCE<br>
IMAGE images/gl_keymap.gif<br>
EXTENT -93.04 39.66 -75.14 50.50<br>
STATUS ON<br>
COLOR -1 -1 -1<br>
OUTLINECOLOR 255 0 0<br>
SIZE 120 75 <br>
END #Reference<br>
<br>
#<br>
# Start of legend<br>
#<br>
LEGEND<br>
KEYSIZE 18 12<br>
LABEL<br>
TYPE BITMAP<br>
SIZE MEDIUM<br>
COLOR 0 0 89<br>
END<br>
STATUS ON<br>
END #Legend<br>
<br>
#<br>
# Start of scalebar<br>
#<br>
SCALEBAR<br>
IMAGECOLOR 255 255 255<br>
LABEL<br>
COLOR 0 0 0 <br>
SIZE SMALL<br>
END<br>
SIZE 150 5<br>
COLOR 255 255 255<br>
BACKGROUNDCOLOR 0 0 0<br>
OUTLINECOLOR 0 0 0<br>
UNITS miles<br>
INTERVALS 5<br>
STATUS ON<br>
END #Scalebar<br>
<br>
<br>
QUERYMAP<br>
STYLE HILITE<br>
COLOR 255 0 0<br>
END #Querymap<br>
<br>
PROJECTION<br>
"init=epsg:4326"<br>
END # Projection<br>
<br>
Mapfile Code: NEW (works in new
install)------------------------------------------------------------------------------------------<br>
MAP<br>
EXTENT -93.04 39.66 -75.14 50.50<br>
FONTSET "../etc/fonts.txt"<br>
IMAGECOLOR 255 255 255<br>
IMAGETYPE PNG<br>
SYMBOLSET "../etc/symbols.sym"<br>
SHAPEPATH "../data/great_lakes"<br>
SIZE 400 300<br>
STATUS ON<br>
UNITS DD<br>
NAME "Great Lakes Demo"<br>
<br>
OUTPUTFORMAT<br>
NAME png<br>
MIMETYPE image/png<br>
DRIVER GD/PNG<br>
EXTENSION png<br>
IMAGEMODE PC256<br>
TRANSPARENT FALSE<br>
END<br>
<br>
PROJECTION<br>
"init=epsg:4326"<br>
END #Projection<br>
<br>
#<br>
# Start of legend<br>
#<br>
LEGEND<br>
IMAGECOLOR 255 255 255<br>
KEYSIZE 18 12<br>
KEYSPACING 5 5<br>
LABEL<br>
SIZE MEDIUM<br>
TYPE BITMAP<br>
BUFFER 0<br>
COLOR 0 0 89<br>
FORCE FALSE<br>
MINDISTANCE -1<br>
MINFEATURESIZE -1<br>
OFFSET 0 0<br>
PARTIALS TRUE<br>
END<br>
POSITION LL<br>
STATUS ON<br>
END #Legend<br>
<br>
QUERYMAP<br>
COLOR 255 0 0<br>
SIZE -1 -1<br>
STATUS OFF<br>
STYLE HILITE<br>
END #Querymap<br>
<br>
#<br>
# Start of reference map<br>
#<br>
REFERENCE<br>
COLOR -1 -1 -1<br>
EXTENT -93.04 39.66 -75.14 50.50<br>
IMAGE "images/gl_keymap.gif"<br>
OUTLINECOLOR 255 0 0<br>
SIZE 120 75<br>
STATUS ON<br>
END #Reference<br>
<br>
#<br>
# Start of scalebar<br>
#<br>
SCALEBAR<br>
BACKGROUNDCOLOR 0 0 0<br>
COLOR 255 255 255<br>
IMAGECOLOR 255 255 255<br>
LABEL<br>
SIZE SMALL<br>
TYPE BITMAP<br>
BUFFER 0<br>
COLOR 0 0 0<br>
FORCE FALSE<br>
MINDISTANCE -1<br>
MINFEATURESIZE -1<br>
OFFSET 0 0<br>
PARTIALS TRUE<br>
POSITION CR<br>
END<br>
OUTLINECOLOR 0 0 0<br>
POSITION LL<br>
SIZE 150 5<br>
STATUS ON<br>
STYLE 0<br>
TRANSPARENT TRUE<br>
UNITS miles<br>
INTERVALS 5<br>
END #Scalebar<br>
<br>
#<br>
# Start of web interface definition<br>
#<br>
WEB<br>
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root <br>
# of the drive where the .MAP file resides.<br>
#<br>
IMAGEPATH "/ms4w/tmp/ms_tmp/" <br>
IMAGEURL "/ms_tmp/"<br>
# LOG "/tmp/gmap.log"<br>
# MINSCALE 20000<br>
# MAXSCALE 100000000<br>
METADATA<br>
"original_projection" "init=epsg:4326"<br>
"original_extents" "-93.04 39.66 -75.14 50.50"<br>
END<br>
QUERYFORMAT text/html<br>
END #Web<br>
<br>
<br><br><div><span class="gmail_quote">On 8/18/05, <b class="gmail_sendername">Jason Fournier</b> <<a href="mailto:jfournier@dmsolutions.ca">jfournier@dmsolutions.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Jennifer,<br><br>While I'm not a MapServer guy by any stretch I can at least get the ball<br>rolling ...<br><br>- What version of MapServer and Chameleon did you upgrade from?<br>- Can you post the first 20-25 lines of your MapFile?
<br>- Do your two working applications use a different output format from<br>those that have stopped working?<br><br>Jay<br><br><br><br>Jennifer Zeisloft wrote:<br>> Greetings All-<br>><br>> We recently upgraded our Chameleon and ms4w installations to the most
<br>> current versions. This is usually no trouble, but not this time. All<br>> but two of the mapping applications (and I can't really say what is<br>> different about those two applications) give the following error in the
<br>> map window (and no pop-up error):<br>><br>> Error rendering map image:<br>> A fatal error has occurred restoring your session.<br>> Please restart the application.<br>><br>> If you click the "update map" button, the entire interface disappears
<br>> and the following errors appear:<br>><br>> *Warning*: [MapServer Error]: loadOutputFormat(): Parsing error near<br>> (;):(line 15) in<br>> *C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php* on line *215*
<br>><br>> *Warning*: Failed to open map file<br>> /ms4w/tmp/sess_43052b1d38e51/1124412195-2907.map in<br>> *C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php* on line *215*<br>><br>> *Fatal error*: Call to a member function on a non-object in
<br>> *C:\ms4w\apps\chameleon\htdocs\widgets\KeyMapDHTML\KeyMapDHTML.widget.php*<br>> on line *150*<br>><br>><br>> Any ideas or solutions would be greatly appreciated. Thanks in advance<br>> for your help!
<br>><br>> Jennifer Zeisloft<br>> UW-Sea Grant<br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> Chameleon mailing list
<br>> <a href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</a><br><br>
--<br>________________________<br>Jason Fournier<br><br>DM Solutions Group Inc.<br><a href="mailto:jfournier@dmsolutions.ca">jfournier@dmsolutions.ca</a><br><a href="http://www.dmsolutions.ca">www.dmsolutions.ca</a><br>613.565.5056
x18<br>_______________________________________________<br>Chameleon mailing list<br><a href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/chameleon">
http://lists.maptools.org/mailman/listinfo/chameleon</a><br></blockquote></div><br>