Title: WP_DEBUG not showing errors
Last modified: August 21, 2016

---

# WP_DEBUG not showing errors

 *  [gstricklind](https://wordpress.org/support/users/gstricklind/)
 * (@gstricklind)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-not-showing-errors-2/)
 * I have a chunk of code that I’ve been told is throwing some errors but they’re
   not being displayed.
 * define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);
 * The debug log is showing the errors, however.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-not-showing-errors-2/#post-4190377)
 * Try moving those lines to the top of your wp-config.php file.
 *  [simplistik](https://wordpress.org/support/users/simplistik/)
 * (@simplistik)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-not-showing-errors-2/#post-4190381)
 *     ```
       define('WP_DEBUG_DISPLAY', true);
       ```
   
 *  Thread Starter [gstricklind](https://wordpress.org/support/users/gstricklind/)
 * (@gstricklind)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-not-showing-errors-2/#post-4190398)
 * Thanks. Added the WP_DEBUG_DISPLAY and moved them to the top. Still nothing showing.
 *  Thread Starter [gstricklind](https://wordpress.org/support/users/gstricklind/)
 * (@gstricklind)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-not-showing-errors-2/#post-4190407)
 * Just tried this: if I test something that will give me an error outside of this:
 * `class kedc_mini_sitemap extends WP_Widget { ... }`
 * I get the error displayed. but any errors inside “extends WP_Widget { … }” will
   not display.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-not-showing-errors-2/#post-4190408)
 * I don’t have `define('WP_DEBUG_DISPLAY', true);` set up yet my errors seem to
   display just fine. what kind of errors are you seeing in the log file? I wonder
   if they are happening just a little too early for the display to catch them?
 *  Thread Starter [gstricklind](https://wordpress.org/support/users/gstricklind/)
 * (@gstricklind)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-not-showing-errors-2/#post-4190419)
 * It’s just a PHP Notice: Undefined index happening around line 125 in my functions.
   php for a custom theme I’ve been working on. If I recreate this error outside
   and above the custom widget function though, it gets displayed.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘WP_DEBUG not showing errors’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [gstricklind](https://wordpress.org/support/users/gstricklind/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/wp_debug-not-showing-errors-2/#post-4190419)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
