Title: WP 4.6 does not report PHP format errors
Last modified: September 3, 2016

---

# WP 4.6 does not report PHP format errors

 *  [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-4-6-does-not-report-php-format-errors/)
 * 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](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-4-6-does-not-report-php-format-errors/#post-8138472)
 * 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](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/wp-4-6-does-not-report-php-format-errors/#post-8229296)
 * 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.

## Tags

 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)

 * 2 replies
 * 1 participant
 * Last reply from: [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/wp-4-6-does-not-report-php-format-errors/#post-8229296)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
