Gaston

you're right, there seems to be a problem with either PHP 4 or MS 4.8 (I 
would guess it's PHP 4). It cannot use the syntax of line 171. If you 
modify it to

             foreach ($mapLays as $ml) {
                 $aLayer = $this->map->getLayerByName($ml);
                 if (!$aLayer->group) {
                     $allGroups[] = $ml ;
                 }
             }

then it should work. I do not make test any more on PHP 4 and I will add 
it to the documentation that PHP 5 is recommended. It is required anyway 
for pm starting with 3.1.

There is MS4W also for 4.10 (using PHP 5.2). On Debian I don't know if 
there are pre-compiled packages for newer MS versions. The backports at 
least have PHP 5.

armin


Gaston Izaguirre wrote:
> Bogumil,
> 
> What version of mapserver you are using? Perhaps the 4.8?
> I had the same problem with that version of mapserver (ms4w 1.55 and PHP 
> 4.3) but I didn't find the solution, only a workaround, thanks to Marino 
> Fiorito.
> 
> If you change line 171 of initmap.php:
>     "if (!$this->map->getLayerByName($ml)->group) {"
> 
> by this line:
>     "if (!$ml->group) {"
> You will avoid having this problem. Remember, it's only a workaround, I do 
> not know the causes that originate this problem.
> 
> Later I updated to mapserver 4.10 (with PHP 5.2) and to pmapper 3.1 and the 
> problem disappeared.
> 
> Hope that this helps you.
> 
> Gaston.
> 
> 
> 
> ----- Original Message ----- 
> From: "Bogumil Szady" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Tuesday, March 06, 2007 3:43 PM
> Subject: [pmapper-users] problem with initmap.php
> 
> 
>> Hello,
>>
>> I try use pmapper on fgs (mapserver) and Debian. I
>>
>> did all changes according to instructions (config.ini, mapfile) and I
>>
>> don't know why I have alert during starting program (demo or my mapfiles):
>>
>>
>>
>> Parse error: parse error, unexpected T_OBJECT_OPERATOR in
>>
>> /home/gis/fgs/apps/pmapper-stable/incphp/init/initmap.php on line 171
>>
>>
>>
>> I used the same files (.map and .ini), which before worked on Mandriva
>>
>> installation of my friend, which had got unresolved problem with
>>
>> polish letter. Now I try alone configure pmapper on my personal
>>
>> computer and Debian.
>>
>>
>>
>> By the way gmap-demo works fine. It means that mapserver is installed
>>
>> and works.
>>
>>
>>
>> Thanks for help
>>
>>
>>
>> Bogumil
>>
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share 
>> your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> pmapper-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> pmapper-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to