1
trabis
How to enable debug mode when having blank pages
  • 2011/10/7 18:05

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I just want to you to know that you can override any $xoopsConfig variable using xoops_data/configs/xoopsconfig.php file (since 2.4.x)

If you are having blank pages and want to enable debug mode, you DON'T have to go to your database.

You can add extra line in xoopsconfig.php:

return array(
        
/**#@+
         * Extended HTML editor for {@link XoopsFormDhtmlTextArea}
         *
         * 

If an extended HTML editor is set, the renderer will be replaced by the specified editor, usually a visual or WYSIWYG editor.


         *
         * 
    Developer and user guide:
             *  
    • For run-time settings per call
               *          
    • To use an editor pre-configured by {@link XoopsEditor}, e.g. 'fckeditor': $options['editor'] = 'fckeditor';

    •          *          
    • To use a custom editor, e.g. 'MyEditor' class located in "/modules/myeditor/myeditor.php": $options['editor'] = array('MyEditor', XOOPS_ROOT_PATH . "/modules/myeditor/myeditor.php");

    •          *      

  •          *  
    • For pre-configured settings, which will force to use a editor if no specific editor is set for call
               *          
      • Set up custom configs: in XOOPS_VAR_PATH . '/configs/xoopsconfig.php' set a editor as default, e.g.
                 *                  
      • a pre-configured editor 'fckeditor': return array('editor' => 'fckeditor');

      •          *                  
      • a custom editor 'MyEditor' class located in "/modules/myeditor/myeditor.php": return array('editor' => array('MyEditor', XOOPS_ROOT_PATH . "/modules/myeditor/myeditor.php");

      •          *              

    •          *          
    • To disable the default editor, in XOOPS_VAR_PATH . '/configs/xoopsconfig.php': return array();

    •          *          
    • To disable the default editor for a specific call: $options['editor'] = 'dhtmltextarea';

    •          *      

  •          * 

         */
        //"editor"    => "fckeditor",
        //"editor"    => "dhtmlext",
        /**#@-*/


        /**#@+
         * Debug level for XOOPS
         *
         * Note: temporary solution only. Will be re-designed in XOOPS 3.0
         *
         * 
    Displaying debug information to different level(s) of users:
             *  
  •  0 - To all users

  •          *  
  •  1 - To members

  •          *  
  •  2 - To admins only

  •          * 

         */
        
"debugLevel" => 2,
        
/**#@-*/

        /** XOOPS admin security warnings
         *
         * 
    Display admin security warnings:
             *  
  •  0 - Disabled

  •          *  
  •  1 - Enabled

  •          * 

         */
        
"admin_warnings_enable" => 1,
    
        
"debug_mode" => 1//Enables debug inline mode
    
);

?>

Login

Who's Online

280 user(s) are online (171 user(s) are browsing Support Forums)


Members: 0


Guests: 280


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits