[mapserver-users] Problem with mapfile path in MS 6.0.1
Bistrais, Bob
Bob.Bistrais at maine.gov
Tue Feb 7 13:43:42 PST 2012
Never mind- worked it out with a string of edits. Part of it was
changing "new mapObject" to "ms_newMapObject".
________________________________
From: Bistrais, Bob
Sent: Tuesday, February 07, 2012 1:29 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Problem with mapfile path in MS 6.0.1
I'm trying to migrate an application from 5.6 to 6.0.1. The basic HTML
loads correctly, but it is having trouble finding the path to the
mapfile. Here are two lines of code specifying the map path and file:
$_SESSION['map_path']="/ms4w_303/apps/mgs/maps/";
$_SESSION['map_file']="ipmapp1_local_enhanced.map";
And when I try to load the app, here is the error:
Warning: mapObj::__construct(): [MapServer Error]:
msProcessProjection(): No such file or directory in
C:\ms4w_303\apps\mgs\htdocs\drawMap.php on line 219 Fatal error:
Uncaught exception 'MapScriptException' with message 'Failed to open map
file /ms4w_303/apps/mgs/maps/ipmapp1_local_enhanced.map' in
C:\ms4w_303\apps\mgs\htdocs\drawMap.php:219 Stack trace: #0
C:\ms4w_303\apps\mgs\htdocs\drawMap.php(219):
mapObj->__construct('/ms4w_303/apps/...') #1 {main} thrown in
C:\ms4w_303\apps\mgs\htdocs\drawMap.php on line 219
I triple-checked the path and I know this to be correct. The
application had the same file and path structure in 5.6. I'm checking
permissions but as far as I can tell these are OK.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120207/59264348/attachment.htm>
More information about the MapServer-users
mailing list