<div dir="auto">Hi David<div dir="auto">When in doubt, I use Jackie's Sanity Check..</div><div dir="auto"><br></div><div dir="auto"><a href="https://themapguyde.blogspot.com/2022/04/mapguide-dev-diary-important.html?m=1">https://themapguyde.blogspot.com/2022/04/mapguide-dev-diary-important.html?m=1</a></div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, 12 Nov 2025, 10:39 David Bowen via mapguide-users, <<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Our application is built using the Model/View/Controller (MVC) framework CodeIgniter and I'm attempting to update the MVC framework from v3.1.13 to v4.6.3, but I'm encountering an issue where it seems that one of the MapGuide functions isn’t being loaded or recognized. The issue occurs during the log out process, where a user logs out of the application and there's a series of steps that take place to destroy the sessions (code below). <br>I'm getting the following error when I attempt to log out of the application: Call to undefined function App\Controllers\Login\MgUserInformation(). This function, MgUserInformation, is successfully called when the user first logs into the application and a session is created, so I’m unclear what’s causing the issue. <br>Does anyone have familiarity with MGOS and CodeIgniter 4, or would anyone have suggestions on how to check if MGOS functions are being properly loaded?<br>We're running MGOS 4 Beta 2 and are unable to go to MGOS 4 until we've updated the MCV framework.<br><br>Thanks,<br>David<br><br>function logout() {<br>    //Log out and destroy session<br>   $this->mgExtDir = getenv('mg_extensionsDir');<br>    $this->webconfig_ini = getenv( 'webconfigFilePath' );<br>    $this->mgMapID = $this->_getValueByFieldName( 'MAPNAME' );<br>    $this->mgSessionId = $this->_getValueByFieldName( 'SESSION' );<br>    try {<br>        // Initialize the Web Extensions and connect to the Server using<br>        // the Web Extensions session identifier stored in PHP session state.<br>                    <br>        MgInitializeWebTier( $this->webconfig_ini );<br>        $si = $this->mgSessionId;<br>       // code fails on following line<br>        $userInfo = new MgUserInformation( $this->mgSessionId );<br>        $siteConnection = new MgSiteConnection();<br>        $siteConnection->Open( $userInfo );<br><br>        $siteConnection->GetSite()->DestroySession( $this->mgSessionId );<br>    } catch ( MgException $e ) {<br>        echo $e->GetMessage();<br>        echo $e->GetDetails();<br>    }<br>    $session_dat = array( 'logged_in' => FALSE );<br>    session()->set( $session_dat );<br>    session()->destroy();<br>    return redirect()->to( 'login/login' ); //Direct user back to login screen<br>}</div>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank" rel="noreferrer">mapguide-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapguide-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</blockquote></div>