13
It's ok edit include/common.php move
// #################### Error reporting settings ##################
if ( $xoopsConfig['debug_mode'] == 1 || $xoopsConfig['debug_mode'] == 2 ) {
error_reporting(E_ALL);
$xoopsLogger->enableRendering();
$xoopsLogger->usePopup = ( $xoopsConfig['debug_mode'] == 2 );
} else {
error_reporting(0);
$xoopsLogger->activated = false;
}
$xoopsSecurity->checkBadips();
after
if ($xoopsModule->getVar('hasconfig') == 1 || $xoopsModule->getVar('hascomments') == 1 || $xoopsModule->getVar( 'hasnotification' ) == 1) {
$xoopsModuleConfig =& $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid'));
}
} elseif($xoopsUser) {
$xoopsUserIsAdmin = $xoopsUser->isAdmin(1);
}
And modify
// #################### Error reporting settings ##################
if ( $xoopsConfig['debug_mode'] == 1 && $xoopsUserIsAdmin || $xoopsConfig['debug_mode'] == 2 ) {
error_reporting(E_ALL);
$xoopsLogger->enableRendering();
$xoopsLogger->usePopup = ( $xoopsConfig['debug_mode'] == 2 );
} else {
error_reporting(0);
$xoopsLogger->activated = false;
}
$xoopsSecurity->checkBadips();