[mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1

Stephen Woodbridge woodbri at swoodbridge.com
Wed Dec 28 11:30:45 EST 2011


Hi Bob,

What does the top 15+- lines of your mapfile look like?
This error is in loadSymbol, do you have a reference to a symbol file? 
is this where the error is coming from? Are you sure you are loading the 
correct symbol file?

-Steve W

On 12/28/2011 11:20 AM, Bistrais, Bob wrote:
> When I try to get the mapfile in cgi mode, a different error appears:
>
> loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 6)
>
> *From: * Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us]
> *Sent:* Wednesday, December 28, 2011 11:00 AM
> *To:* Bistrais, Bob; mapserver-users at lists.osgeo.org
> *Subject:* RE: failed to open map file - MS 6.0 to 6.0.1
>
> Nothing should have to be done. 6.0.1 was primarily a security update.
> Can you try accessing the mapfile
>
> outside PHP with shp2img or mapserv itself?
>
> Steve
>
> *From: * mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of
> *Bistrais, Bob
> *Sent:* Wednesday, December 28, 2011 9:56 AM
> *To:* mapserver-users at lists.osgeo.org
> *Subject:* [mapserver-users] failed to open map file - MS 6.0 to 6.0.1
>
> I’m trying to upgrade some MapServer applications which were originally
> written before MS 6.0. These had been migrated to 6.0, now I am trying
> to upgrade them to 6.0.1. I would have thought nothing needed to be
> done, but when I try to view these applications, I get the following
> error message:
>
> Warning: ms_newMapObj(): [MapServer Error]: msLoadMap():
> (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218
> Fatal error: Uncaught exception 'MapScriptException' with message
> 'Failed to open map file "../maps/mymap.map"' in
> C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0
> C:\ms4w\apps\mgs\htdocs\drawMap.php(218):
> ms_newMapObj('../maps/mymap...') #1 {main} thrown in
> C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218
>
> -I checked the obvious, such as permissions, paths, etc, but not able to
> figure out what’s going wrong here. As mentioned, it works OK in MS 6.0.
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list