<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>2.0 Admin not working - GetCurrentSiteAddress() on a non-object</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
<BR><FONT SIZE=2 FACE="Arial">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:</FONT></P>
<P><B><FONT FACE="Arial">Fatal error</FONT></B><FONT FACE="Arial">: Call to a member function GetCurrentSiteAddress() on a non-object in</FONT><B> <FONT FACE="Arial">/usr/local/mapguideopensource/webserverextensions/www/mapadmin/servermanagement.php</FONT></B><FONT FACE="Arial"> on line</FONT><B> <FONT FACE="Arial">67</FONT></B><FONT FACE="Arial"> </FONT></P>
<P><FONT SIZE=2 FACE="Arial">Tracking this down a bit, that line is just:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">$siteServerAddress = $site->GetCurrentSiteAddress();</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">So it looks like it is not ever properly creating an MGSite object. Does anyone have any idea why this might be occuring?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thank you.</FONT>
</P>
<P><FONT SIZE=1 FACE="Tahoma">Andy Morsell, P.E.</FONT>
<BR><FONT SIZE=1 FACE="Tahoma">Spatial Integrators, Inc.</FONT>
<BR><A HREF="http://www.SpatialGIS.com"><U><FONT COLOR="#0000FF" SIZE=1 FACE="Tahoma">http://www.SpatialGIS.com</FONT></U></A>
</P>
</BODY>
</HTML>