[Mapserver-users] Funny behavior in new 4.0.1 setup...

Dylan Keon keon at nacse.org
Wed Mar 24 15:24:30 PST 2004


Aaron Racicot wrote:
> Hello,
> I am upgrading from an old Alpha with Mapserver 3.6 to a new setup:
> 
> RedHat Enterprise Linux 3.0 AS on Intel Box (2.8gHz,1G,Dual 40G drives)
> Mapserver/Mapscript - 4.0.1
> Postgresql - 7.4.2
> Postgis - 0.8.1
> PHP - 4.3.4
> Maplab - 2.1-rc3
> Chameleon 1.1alpha-20031031
> chameleon-sample - From MapTools.org
> 
> The problem I am having has to do with my installation of Mapscript.  Upon
> doing a simple:
> 
> dl("php_mapscript.so");
> 
> I am able to do a phpinfo() and see Mapserver installed and looking good.  I
> am even able to do things like:
> 
> $array_demo = ms_TokenizeMap("demo.map");
> 
> And I can look at the output array and all is well.
> 
> Where I am having problems is that constants (like MS_PNG) are not
> available.  I get the following in my apache log when trying to access
> MS_PNG:
> 
> [Wed Mar 24 14:44:23 2004] [error] [client 129.95.72.84] PHP Notice:  Use of
> undefined constant MS_PNG - assumed 'MS_PNG' in
> /src/mapserver_4_0_1/maplab/maplab-2.1-rc3/projects/gmf_apps/test3/globprefs
> .php on line 126, referer:
> http://129.95.72.140/maplab/projects/gmf_apps/test3/
> 
> Did something go wrong with my build or is there something obvious that I
> missed when reading about version 4.x?


Aaron, did you take a look at the 4.0 Migration Guide?  A lot changed 
between 3.x and 4.x.  Read through 
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MigrationGuide .

For example,

         $image_out = $image->saveImage('test',MS_PNG,0,0,0);
     is now implemented as
         $image_out = $image->saveImage('test')

Something like that could be causing your current error.

--Dylan


-- 
**************************************************************
  Dylan Keon - GIS/Database Specialist
  Northwest Alliance for Computational Science and Engineering
  Oregon State University
  Corvallis, OR 97331
  keon at nacse.org     voice: 541-737-6608     fax: 541-737-6609
  http://gis.nacse.org
**************************************************************



More information about the MapServer-users mailing list