[Chameleon] warning messages using apache 2.2.0 and php 5.1.2

Mike Leahy mgleahy at alumni.uwaterloo.ca
Sun Feb 19 03:04:09 EST 2006


Hello list,

I think I figured this one out.  On line 611 (as quoted below) or 658 
(cvs that I downloaded today), change the following if statement:

if ($this->moMapSession == "")
             $this->moMapSession = new MapSession_R;

to:

if (!$this->moMapSession)
             $this->moMapSession = new MapSession_R;

That at least got me past the first error quoted below.  I suspect a 
similar change in XMLThemeParser.php will solve the second error (which 
I'm not getting at the moment since I'm not using that widget).  I'm 
using PHP 5.1.2 on FC5T2 - this fix will probably also work for PHP 5.1.1.

I should note that I also had to fix two additional notices in drawmap.php:

change (~line 361):

// $oMapSession->setLogFile( $gLogFile );
if ($oErrorManager != "?")
     $oMapSession->setErrorManager( $oErrorManager );

to:

// $oMapSession->setLogFile( $gLogFile );
if ($oErrorManager && gettype($oErrorManager) == "object")
     $oMapSession->setErrorManager( $oErrorManager );



and change (~line 687):

if ($oImage == MS_FALSE)

to

if (!$oImage)


I hope this helps...
Mike


Julien-Samuel Lacroix wrote:
> I've work with php5.0.5 for few months now and I did not see this error. 
> I heard that there were few problem with php5.1.0 though. So it's 
> probably not working for this version and above.
> 
> I've open a bug to track the issue:
> http://bugzilla.maptools.org/show_bug.cgi?id=1298
> 
> Julien
> 
> Sears, Jeremy wrote:
>> Hey,
>> We had the same problem. Upgrading to PHP5 caused chameleon to 
>> malfunction.
>> Im running MS4W on winXP, with chameleon 2.2.1. Im under the 
>> assumption that
>> chameleon 2.2.1 cant handel php5 (or the other way round). Someone 
>> correct
>> me if Im wrong ....
>>
>> Jeremy
>>
>> -----Original Message-----
>> From: chameleon-bounces at lists.maptools.org
>> [mailto:chameleon-bounces at lists.maptools.org]On Behalf Of Kralidis,Tom
>> [Burlington]
>> Sent: February 17, 2006 9:29 AM
>> To: chameleon at lists.maptools.org
>> Subject: [Chameleon] warning messages using apache 2.2.0 and php 5.1.2
>>
>>
>>
>> Hi,
>>
>> We upgraded to Apache 2.2.0 and php 5.1.2 and have tried to run our
>> chameleon 2.2 application and receive a slew of warning messages:
>>
>> Notice: Object of class MapSession_RW could not be converted to int in
>> /usr/local/wwwsites/apache/devgeo.cciw.ca/apps/chameleon/htdocs/chameleo
>> n.php on line 611
>>
>> Notice: Object of class XMLObject could not be converted to int in
>> /usr/local/wwwsites/apache/devgeo.cciw.ca/apps/chameleon/htdocs/widgets/
>> XMLThemeLegend/XMLThemeParser.php on line 54
>>
>> The XMLObject error happens 20 - 30 times on different line numbers in
>> XMLThemeParser.php
>>
>> The application then processes as expected.
>>
>> Any suggestions?
>>
>> Thanks
>>
>> ..Tom
>>
>> _______________________________________________
>> Chameleon mailing list
>> Chameleon at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/chameleon
>> _______________________________________________
>> Chameleon mailing list
>> Chameleon at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/chameleon
> 


More information about the Chameleon mailing list