TinyPortal

Development => Support => Topic started by: iowamf on September 10, 2005, 02:49:25 AM

Title: HTTP_SERVER_VARS error in Forum Error Log
Post by: iowamf on September 10, 2005, 02:49:25 AM
I'm getting this message repeated over & over in the Forum Error Log:

* http://shuttle/smf/index.php?action=viewErrorLog

* 8: Undefined index: HTTP_SERVER_VARS
   File: /var/www/html/smf/Sources/TPortal.php
   Line: 50

==
Details: SMF 1.1 Beta 3 Public
TinyPortal v.0.6.5
Standalone Fedora Core 4 / Redhat

Any clues? It doesn't seem to be an issue, other than filling up the Forum Error Log.
Title: Re: HTTP_SERVER_VARS error in Forum Error Log
Post by: bloc on September 10, 2005, 10:22:24 AM
Somehow the HTTP_SERVER_VARS can't be fetched. This line in Tportal.php...
        // get the action
        $context['TPortal']['querystring']=$GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'];

Does using $GLOBALS['_SERVER']['QUERY_STRING'] work without errors filling up?
Title: Re: HTTP_SERVER_VARS error in Forum Error Log
Post by: iowamf on September 10, 2005, 10:42:25 AM
That appears to have worked:

  changing HTTP_SERVER_VARS to _SERVER in Sources/TPortal.php

How many people are using the "Bloc" userid on this site ;-)

Thanks
Title: Re: HTTP_SERVER_VARS error in Forum Error Log
Post by: bloc on September 10, 2005, 12:36:40 PM
Only me... :)