[mapserver-users] Problem with mapfile path in MS 6.0.1

Bistrais, Bob Bob.Bistrais at maine.gov
Tue Feb 7 13:28:53 EST 2012


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/8397b242/attachment.html


More information about the mapserver-users mailing list