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

Aaron Racicot aaronr at ccalmr.ogi.edu
Wed Mar 24 15:42:30 PST 2004


Yes that was it... I read, but obviously not deep enough.  The good
reference page I missed on my first read was:

http://www2.dmsolutions.ca/mapserver/dl/mapserver-4.x-PHP-MAPSCRIPT-README.t
xt

This clearly shows that the constants I am having trouble with are no longer
there!  Maybe someone could link this page to the Mapscript documentation
page on MapTools.org?  The latest version of documentation posted is 3.6.3,
yet you can download 4.0.1.  

Thanks again for the help.

Aaron

-----Original Message-----
From: Dylan Keon [mailto:keon at nacse.org] 
Sent: Wednesday, March 24, 2004 3:25 PM
To: Aaron Racicot
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Funny behavior in new 4.0.1 setup...

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