2
XOOPS gave this error in script installed:
Strict Standards: Non-static method Xoopslogger::instance() should not be called statically in /home/b81inudo/public_html/portal/include/common.php on line 109
Strict Standards: Non-static method Xoopslogger::instance() should not be called statically in /home/b81inudo/public_html/portal/class/logger.php on line 228
I couldn’t solve it, the line of code is from logger.php
:
function addBlock($name, $cached = false, $cachetime = 0) {
if ( $this->activated ) $this->blocks[] = array('name' => $name, 'cached' => $cached, 'cachetime' => $cachetime);
}
And that of common.php
:
if ( empty( $_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' ];
}
}
Also tell us which version of php and xoops.
– rray
This is PHP version conflict. You won’t solve it without rewriting the Xoopslogger class. Take a look in it. It was made for PHP 4 which was discontinued 7 years ago. Now look what it says on the download page of the new version of XOOPS: You’ll need PHP 5.3.7+ (PHP 5.3.7 or higher required). And yet it is quite likely that without hiding the Strict Standards as I said the error remains. I downloaded the current version and it is still written for PHP 4.
– Bruno Augusto
when I hide the mistakes he gets the white page.
– feliphe felix
updated the files and it only gave this error: Fatal error: Class 'Xoopspreload' not found in /home/b81inudo/public_html/portal/include/common.php on line 50
– feliphe felix