[mapserver-users] gmap75 Help

Stephen Woodbridge woodbri at swoodbridge.com
Tue Jan 8 16:13:37 EST 2002


A further update!

I changed the first if block in gmap75.php3 to

if (isset($HTTP_POST_VARS))
  $HTTP_FORM_VARS = $HTTP_POST_VARS;
else if (isset($HTTP_GET_VARS))
  $HTTP_FORM_VARS = $HTTP_GET_VARS;
else
  $HTTP_FORM_VARS = array("");

to get by the problem of loading that, but ran into the following
problem that I have narrowed down to the line gmap75.php3:506

  $poLayer = $gpoMap->getlayerbyname($szLayerName);

which segvs when it it first called from gmap75.phtml:175 via
GMapGetStatus("road")

I don't think I can take this much further. 
Does anyone have a clue as to what I should check or do next?

-Steve

Stephen Woodbridge wrote:
> 
> I have a little bit more on this. I have narrowed it down to the
> include("gmap75.php3"); line, which by the way should be written as
> include("./gmap75.php3") to force php to look in the local directory and
> not in the include path if one is set in the php3.ini file as is my
> case. This would make it more portable to other people's systems.
> 
> I wrote 2 trivial scripts at
> 
> http://swoodbridge.com/web2/gmap/htdocs/t.php3
> http://swoodbridge.com/web2/gmap/htdocs/t2.php3
> 
> where t.php3 is:
> 
> <html>
> <?php
> 
> if (!extension_loaded("MapScript"))
>   dl("php_mapscript.so"); // Same name for PHP3 and PHP4
> 
> include("./gmap75.php3");
> 
> phpinfo();
> 
> ?>
> </html>
> 
> and t2.php3 is the same except the include is commented out. You will
> notice that the phpinfo() output is truncated on t.php3 and not on
> t2.php3. There is also a segv logged in the error_log for t.php3.
> 
> Any ideas?
> 
> -Steve
> 
> Stephen Woodbridge wrote:
> >
> > Hi all,
> >
> > I just downloaded gmap75 to try with the released mapserver 3.5 and ran
> > into the following problems:
> >
> > 1) the symbols.sym file needs to be edited to change all line:
> >    "Filled" to "Filled TRUE"
> >
> > 2) when I tried to load the initial page I go back "The document
> > contained no data." dialog box and the apache error log:
> >
> > [Tue Jan  8 08:42:29 2002] [notice] child pid 18409 exit signal
> > Segmentation fault (11)
> >
> > My config setup is at:
> > http://swoodbridge.com/web2/ms_test/phpinfo_mapscript.php3
> >
> > and the gmap demo is at:
> > http://swoodbridge.com/web2/gmap/htdocs/index.php3
> >
> > I edited the map file for this location. Are there any other hard coded
> > paths that might cause this?
> >
> > Any suggestions on how to debug this?
> > Any help would be appreaciated.
> >   -Steve Woodbridge



More information about the mapserver-users mailing list