ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

editing debug preference manually

February 18, 2011 1:11pm

Subscribe [3]
  • #1 / Feb 18, 2011 1:11pm

    daveyball

    19 posts

    Hi,

    I am needing to edit my debug preferences outside of the control panel area.  Am I able to do this by editing a file in my installation or via mysql?

    Debug Preference
    Enables the display of error messages, which are valuable during site development

    Need to change the default 1 setting to 0 (no errors displayed) so I can access my control panel again.

    Thanks!

  • #2 / Feb 19, 2011 3:07pm

    Greg Salt

    3988 posts

    Hi daveyball,

    Please look in the system/index.php file for the Error Reporting Override block:

    /*
     * --------------------------------------------------------------------
     *  ERROR REPORTING OVERRIDE
     * --------------------------------------------------------------------
     *
     * PHP and database errors are normally displayed dynamically based
     * on the authorization level of each user accessing your site.  
     * This variable allows the error reporting system to be overridden, 
     * which can be useful for low level debugging during site development, 
     * since errors happening before a user is authenticated will not normally 
     * be shown.  Options:
     *
     *    $debug = 0;  Default setting. Errors shown based on authorization level
     *
     *    $debug = 1;  All errors shown regardless of authorization
     *
     * NOTE: Enabling this override can have security implications.
     * Enable it only if you have a good reason to.
     * 
     */
        $debug = 0;

    What is happening so that displayed errors are blocking you from accessing your CP?

    Cheers

    Greg

  • #3 / Feb 19, 2011 3:20pm

    daveyball

    19 posts

    Thanks for responding Greg but in the expression engine control panel there are 3 levels.  Why are only 2 listed here?  I want all errors to not show up at all.

    It’s an issue with these errors that related to my version of PHP
    “A PHP Error was encountered
    Severity: Warning
    Message: include_once(): Unable to allocate memory for pool.”

    It’s not a very severe warning and my sysadmin can’t figure out why EE is giving me these errors.  It’s easier to just have EE not show those errors (everything works fine when I do this—I just upgraded and need to go back to that setting but cant through the control panel because I can’t access it because of the memory warnings).

  • #4 / Feb 21, 2011 2:39am

    John Henry Donovan

    12339 posts

    daveyball,

    Leave your error level at 1 in your Output and Debugging preferences as we recommend

    What version and build of EE are you using?
    What environment have you installed in?
    Are you using the Suhosin patch for PHP?
    How much PHP memory do you have?

    Are you running any add-ons?

    Has this been the issue from the start of your install or is it recently it only started happening?

    Do you meet all our requirements here. Can you also run the server wizard please?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases