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

Bistrais, Bob Bob.Bistrais at maine.gov
Wed Dec 28 16:02:26 EST 2011


As for the first 15 lines of the .map file, here they are:

MAP
  NAME		"LURC PARCELS"
  SIZE          580 460
  STATUS	ON
  IMAGETYPE     PNG
  IMAGECOLOR    192 224 255
  EXTENT        134000 4700000 890900 5300000
  UNITS         METERS
  SHAPEPATH     "../data"
  SYMBOLSET     "../symbols/symbols35.sym"
  FONTSET       "../fonts/fonts.list"

  PROJECTION
    # NAD83 / UTM zone 19N
    "proj=utm"
    "zone=19"
    "ellps=GRS80"
    "datum=NAD83"
    "units=m"
    "no_defs"
  END


-All individual layers are referenced as Included files

-----Original Message-----
From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] 
Sent: Wednesday, December 28, 2011 11:31 AM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to
6.0.1

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