[mapserver-users] php_mapscript 363 not working properly (was Re: getAllLayerNames not working)

Puneet Kishor pkishor at GeoAnalytics.com
Wed Oct 30 13:20:01 PST 2002


Thanks Gentlemen,

That was it. You saved me from wasting another full day. 

There was a libmap.a under /usr/local/lib. Deleting it, and rebuilding
mapserver did the trick.

My graticule to you.

Puneet.


> From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com]
> Subject: Re: [mapserver-users] php_mapscript 363 not working properly
> (was Re: getAllLayerNames not working)
> 
> 
> 
> Puneet,
> 
> I had this problem very early in my mapserver experience and 
> if I remember correctly, the issue was a build problem. Maybe 
> you did a make install on the last version and have a 
> libmap.a in /usr/lib or /usr/local/lib if so delete it and 
> NEVER DO make install of Mapserver! Then rebuild mapserver 
> and mapscript can copy the files appropriately.
> 
> -Steve W.
> 



> From: Daniel Morissette [mailto:morissette at dmsolutions.ca]
> Cc: 'mapserver-users at lists.gis.umn.edu'
> Subject: Re: [mapserver-users] msGetErrorObj (was RE: getAllLayerNames
> not working)
> 
> 
> Puneet Kishor wrote:
> > 
> > anyone anyidea?
> > 
> 
> See if you have an old /usr/local/lib/libmap.a, and if you do then
> delete it and rebuild php_mapscript.so




> Puneet Kishor <pkishor at GeoAnalytics.com> wrote:
> >
> > I haven't yet recd. any suggestions on this, but have 
> further info that 
> > might help some gooroo diagnose this for me. It gets curiouser and 
> > curiouser...
> > 
> > If I do $mapObj->numlayers I get the correct answer (11 in 
> this case).
> > If I do $layerObj = $mapObj->getLayer(0) and then
> > 	I do $layerObj->name I get the correct name (parcels in 
> this case).
> > However, $mapObj->getLayer(1) or any number thereafter just 
> does not 
> > work. Nothing is returned.
> > 
> > Keep in mind, nothing has changed in the project, the mapfile, the 
> > scripts, etc. All I have done is compiled the new php_mapscript 
> > (version 3.6.3).
> > 
> > Could anyone please suggest what steps I could undertake to 
> debug this.
> > 
> > Many thanks in advance.
> > 
> > Puneet.
> > 
> > On Tuesday, October 29, 2002, at 05:36  PM, Puneet Kishor wrote:
> > 
> > > folks,
> > >
> > > I upgraded a sweetly working ms 3.5 to ms 3.6.3 and now 
> things are not
> > > working very well. One symptom is that getAllLayerNames() returns
> > > nothing at all. In fact, so much so, everything quits but 
> without any
> > > error messages! The html output simply gets trunctated... 
> nothing more
> > > is generated past that function. Other, previously happy 
> methods such 
> > > as
> > > returning the extent simply return 0.
> > >
> > > My feeling is that maybe my php_mapscript.so is corrupt 
> (or funky in
> > > some other way). However, simple calls like $mapObj->name 
> return the
> > > name just fine. $mapObj->shapepath returned nothing at 
> all (of course,
> > > it is set)
> > >
> > > Is there a place I can look for errors? I turned error 
> logging on in
> > > php.ini, and even set an error log filename, but nothing 
> is generated.
> > > Is there a way I can determine that I have a kosher version of
> > > php_mapscript.so?
> > >
> > > Is there is something obvious that I am overlooking? I 
> compiled 3.6.3
> > > against php 4.1.2 (as a cgi) running on Apache 2.0.43. 
> Perl/mapscript 
> > > is
> > > working fine, and php by itself is working fine.
> > >
> > > tia,
> > >
> > > pk.
> 



More information about the MapServer-users mailing list