Enabling WordPress Debugging

When our support ask you to enable the debug mode on your website, you need to do the following:

  1. Edit/Open the file “wp-config.php” of your site. (The “wp-config.php” file is usually located in the root folder of your website with other folders like /wp-content/)
  2. Change the WP_DEBUG constant to true. See this this example:
    define('WP_DEBUG', true);

    Note: The true and false values in the example are not surrounded by apostrophes (‘) because they are boolean (true/false) values. If you set constants to 'false', they will be interpreted as true because the quotes make it a string rather than a boolean.

  3. Add the following code right after the WP_DEBUG constant:
    if ( WP_DEBUG ) {
        error_reporting( -1 );
        @ini_set( 'log_errors', true );
        @ini_set( 'log_errors_max_len', '0' );
        @ini_set( 'display_errors', 1 );
        define( 'WP_DEBUG_LOG', true );
        define('WP_DEBUG_DISPLAY', true);
        define( 'CONCATENATE_SCRIPTS', false );
        define( 'SAVEQUERIES', true );
        define( 'SCRIPT_DEBUG', true );
  4. Enable the plugin debug mode #
  5. Install the plugin WP Log Viewer

In the same context