[Mapserver-users] ms_newMapObj in latest 4.0 changed?

Daniel Morissette morissette at dmsolutions.ca
Tue Jul 29 09:59:54 EDT 2003


Vinko Vrsalovic wrote:
> 
> PHP Warning:  [MapServer Error]: msEvalRegex(): String (/tmp/map) failed
> expression test.
> in /var/www/html/draw.php on line 3
> PHP Warning:  Failed to open /tmp/map file map in /var/www/html/draw.php on line 3
> PHP Fatal error:  Call to a member function on a non-object in /var/www/html/draw.php on line 4
> 

That's because the mapfile filename doesn't match the MS_MAPFILEPATTERN 
regular expression.  In this case you're probably missing the ".map" 
extension.

There's a little bit of info on MS_MAPFILEPATTERN in the migration guide 
at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MigrationGuide

-- 
------------------------------------------------------------
  Daniel Morissette               morissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the mapserver-users mailing list