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