Reporting problems in Xoops: READ THIS before posting

joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Sun, 2003-05-18 07:55

[Can someone make this sticky?]
If you have a problem with Gallery, and you're running a version integrated with Xoops, you'll need to do something first.

In Xoops 2.x, go to include/common.php, and search for "debug". Then add the // as shown here:

 
       // if ($xoopsConfig['debug_mode'] == 1) {
               error_reporting(E_ALL);
       // }

or (more complicated but better) change it to

        // if ($xoopsConfig['debug_mode'] == 1) {
                error_reporting(E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | 
                        E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | 
                        E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE );
        // }

Then re-do whatever it is that's the problem, and hopefully you'll get some error messages that will help gallery developers/users identify your problem.

This is particularly vital if you are getting "blank page" errors, which don't occur in plain gallery.

If anyone knows how to do the equivalent in earlier versions of xoop, please reply to this.

 
mjz55

Joined: 2005-08-10
Posts: 61
Posted: Tue, 2007-01-23 19:56

If I put the // before the if, it turns the whole line yellow, is that ok? This is what I have before I add the //. It's more than you have, is that ok? Sorry, I'm new to this.

// #################### 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();