<div dir="ltr">I wonder if you should add the following to your conf file?<br><br><div><pre style="color:rgb(10,10,10);font-size:14px"><code><span class="gmail-undefined">AddType application/octet-stream .agf</span></code></pre><pre style="color:rgb(10,10,10);font-size:14px"><code><span class="gmail-undefined"><br></span></code></pre><pre style="color:rgb(10,10,10);font-size:14px"><code><span class="gmail-undefined"><br></span></code></pre></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Jan 9, 2026 at 10:20 AM David Bowen <<a href="mailto:dbowenrci@gmail.com">dbowenrci@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Gordon,<br>Thanks for providing this, and apologies for the delayed response. I added it to one of the application's controllers and wasn't able to get it to successfully run. I'm able to get the initial section of code to echo to screen, but once there are MapGuide functions, it fails.<br><div><br></div><div>This section of code works fine:</div>echo "Initializing web tier";<br>try {<br>    MgInitializeWebTier("DIR_PATH\Web\www\webconfig.ini");\<br>} catch (MgException $initEx) {<br>    echo "Init failure!";<br>    die;<br>} catch (Exception $ex) {<br>    echo "[php]: Exception: " . $ex->getMessage() . "\n";<br>    die;<br>}<br>echo "[php]: Initialized\n";<br>// We haven't and shouldn't need to require/include constants.php<br>// they are now baked into the PHP extension along with the other<br>// MapGuide API proxy classes<br>echo "[php]: Testing some constants\n";<br><br>The next line is where it fails:<br>echo "  - " . MgMimeType::Agf . "\n";<br><br>The error CodeIgniter's returning is:<br>Class "App\Controllers\Maptools\MgMimeType" not found <br><br>It seems like MapGuide functions aren't being recognized/loaded by CodeIgniter. The MapGuideAPI is enabled in php.ini, and it shows as enabled when I run info.php.<br><br><div>Any input would be greatly appreciated.</div><div><br></div><div>Thanks,</div><div>David</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 12, 2025 at 11:05 AM Gordon Luckett <<a href="mailto:gordon.luckett@arrowgeomatics.com" target="_blank">gordon.luckett@arrowgeomatics.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">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"><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" target="_blank">mapguide-users@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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" rel="noreferrer" target="_blank">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>
</blockquote></div>
</blockquote></div>