[mapguide-users] 2.0 Admin not working - GetCurrentSiteAddress() ona non-object

Andy Morsell amorsell at spatialgis.com
Tue May 13 20:25:24 EDT 2008


I tracked this problem down finally.  It turns out that if you set the
directive register_globals to on in php.ini, then this will be the result
when trying to access server admin.  In my case, I am integrating an
existing application (that I did not originally write) that requires this
directive be set to on.  I'm really not sure if this is a bug or not since I
know that the use of this directive is a potential security risk and not
good practice.
 

Andy 


  _____  

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Andy Morsell
Sent: Tuesday, May 06, 2008 12:42 PM
To: 'MapGuide Users Mail List'
Subject: [mapguide-users] 2.0 Admin not working - GetCurrentSiteAddress()
ona non-object



Hi, 
I have a CentOS box configured with MGOS 2.0.  Everything is working fine -
standard and flexible layouts display, the Sheboygan sample PHP application
works with no issues, the mapagent test pages work just fine, and so on.
But, recently (and it had been working at some point) Administrator stopped
working.  I get the login page just fine, but after submitting the proper
username and password, I get:

Fatal error: Call to a member function GetCurrentSiteAddress() on a
non-object in
/usr/local/mapguideopensource/webserverextensions/www/mapadmin/servermanagem
ent.php on line 67 

Tracking this down a bit, that line is just: 

$siteServerAddress = $site->GetCurrentSiteAddress(); 

So it looks like it is not ever properly creating an MGSite object.  Does
anyone have any idea why this might be occuring?

Thank you. 

Andy Morsell, P.E. 
Spatial Integrators, Inc. 
 <http://www.SpatialGIS.com> http://www.SpatialGIS.com 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080513/28d246cd/attachment.html


More information about the mapguide-users mailing list