• Ever since I upgraded my localhost to WP 4.6, the debug.log file does not report PHP format error.

    My wp-config file settings are set to,

    define('WP_DEBUG', true);
    define( 'WP_DEBUG_DISPLAY', false );
    define( 'WP_DEBUG_LOG', true );

    If I make a PHP format/coding error such as a missing ‘;’ at the end of a line, I used to get a line the debug.log file with a information at to which file and which line number the error is on.

    Now, I get a black screen (which I know if related to a PHP fatal error) but not message in the debug.log file.

    Has some settings changed in WP 4.6? Does one need to add additional debug parameters to get the fatal errors to show up?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Aurovrata Venet

    (@aurovrata)

    Update: I have echo’ed the error_reporting() level and it is set to zero in the excution, hence no reporting of errors. I think there is a bug here.

    Thread Starter Aurovrata Venet

    (@aurovrata)

    I managed to overcome this by modifying my wp-config.php file and forcing error reporting,

    
    define('WP_DEBUG', true);
    if ( WP_DEBUG ) {
        define( 'WP_DEBUG_LOG', true );
        define( 'WP_DEBUG_DISPLAY', false );
        @ini_set( 'display_errors', 0 );
        define('AUTOSAVE_INTERVAL', 600 );  //seconds
    }
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WP 4.6 does not report PHP format errors’ is closed to new replies.