Dejan

a few others have a similar error but I never succeed to get it, neither 
on Windows nor Linux, and testing 3 completely different datasets and 3 
different projections.

I was thinking it could be related to the ms4w package but also with the 
php.ini from that everything worked fine for me.

Did you try if is working for you when using the default map file from 
p.mapper and the test data from SF?

Without more detailed information like map file, error log of PHP and 
Javascript errors I cannot say so much.


Gambin Dejan wrote:
> Hi,
> 
> I am trying to use pmapper with PHP 5.2.0 and Apache 2.2.3 under MS4W
> v2.2.1. Since I was using some older PHP/Apache versions, I was hoping
> the MS4W will make the things easier but...
> 
> After configuring all the stuff, I have tried opening the map (pmapper
> 3.0.0-beta1) and got the error:
> 
> PHP Fatal error:  zoomPoint failed : incorrect parameters in
> C:\Projekti\GIS\WebGIS\pmapper-3.0.0-beta1\incphp\map.php on line 510
> 
> The line is:
> 
> $this->map->zoompoint($this->zoom_factor, $xy_pix, $this->mapwidth,
> $this->mapheight, $this->geoext0, $this->maxextent);
> 
> ...I have realised that mapwidth and mapheight are not defined
> (error_log displays NaN). 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

what does that mean? "error_log" is the log of PHP, but NaN is something 
I just know from JS...? what do you get if you log the '$this->mapwidth' 
with either error_log($this->mapwidth) or printDebug($this->mapwidth) 
before that function is applied?


Going further, it seems that
> $_SESSION["mapwidth"] is undefined even if defined in init.php after
> line 42 ($_SESSION["mapwidth"]  = $mapW;).
> 

so you don't have the mapwidth in you actual session? or is it empty? A 
helpful tool is the 'readsession.php' from the 'util' directory of 
p.mapper to see the session variables better readable.

> Did I miss something?
> 
> thanks
> 
> regards, dejan
> 

-------------------------------------------------------------------------
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