xoops forums

Forum Index


Board index » All Posts (donnoman)




donnoman

Just popping in
Posted on: 2005/2/13 18:05
donnoman
donnoman (Show more)
Just popping in
Posts: 1
Since: 2005/2/13
#1

Re: FRESH Xoops 2.0.9.2 Install --- MODULES NOT WORKING ?

xoops-2.0.9.2 && php-4.3.10
After new install on Win 2k IIS 5 when you click on anything in the system admin menu you get:
Quote:

Selected module does not exist!

find in include/common.php:
if ( !isset( $_SERVER'REQUEST_URI' ] ) ) {         // Not defined by IIS
        // Under some configs, IIS makes SCRIPT_NAME point to php.exe :-(
        
if ( !( $_SERVER'REQUEST_URI' ] = @$_SERVER['PHP_SELF'] ) ) {
            
$_SERVER'REQUEST_URI' ] = $_SERVER['SCRIPT_NAME'];
        }
        if ( isset( 
$_SERVER'QUERY_STRING' ] ) ) {
            
$_SERVER'REQUEST_URI' ] .= '?' $_SERVER'QUERY_STRING' ];
        }
    }

Even though the 'REQUEST_URI' appears to be nul, isset is returning 1.
From phpinfo();
Quote:

_SERVER["REQUEST_URI"] no value

change to:
if ( !$_SERVER'REQUEST_URI' ] )  {         // Not defined by IIS - isset returns 1 even when blank
        // Under some configs, IIS makes SCRIPT_NAME point to php.exe :-(
        
if ( !( $_SERVER'REQUEST_URI' ] = @$_SERVER['PHP_SELF'] ) ) {
            
$_SERVER'REQUEST_URI' ] = $_SERVER['SCRIPT_NAME'];
        }
        if ( isset( 
$_SERVER'QUERY_STRING' ] ) ) {
            
$_SERVER'REQUEST_URI' ] .= '?' $_SERVER'QUERY_STRING' ];
        }
    }



TopTop