Title: WP_DEBUG
Last modified: August 24, 2025

---

# WP_DEBUG

 *  Resolved [monicanvicente](https://wordpress.org/support/users/monicanvicente/)
 * (@monicanvicente)
 * [9 months ago](https://wordpress.org/support/topic/wp_debug-7/)
 * Hi everyone,
 * I’m using the latest version of WordPress and I’m still seeing the Site Health
   warning:
 * “Your site is set to log errors to a potentially public file.”
 * But I’ve confirmed:
   – WP_DEBUG is set to false– WP_DEBUG_LOG is not defined at
   all in wp-config.php– I even used unset($GLOBALS[‘WP_DEBUG_LOG’]) to remove it
   if defined– debug.log does not exist in /wp-content– All cache (LiteSpeed and
   browser) cleared– No debug-related plugins installed
 * Everything is clean, yet the warning persists. Is this a known false positive
   or caching bug?
 * Thanks in advance!

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [9 months ago](https://wordpress.org/support/topic/wp_debug-7/#post-18611787)
 * > WP_DEBUG_LOG is not defined at all in wp-config.php
 * In the wp.config.php file, try adding WP_DEBUG to false: define( ‘WP_DEBUG’, 
   false );
 *  Thread Starter [monicanvicente](https://wordpress.org/support/users/monicanvicente/)
 * (@monicanvicente)
 * [9 months ago](https://wordpress.org/support/topic/wp_debug-7/#post-18611848)
 * **Thanks for your input!**
 * The issue is now fully resolved.
   It turns out there was an extra block of debug-
   related code hidden further down in the `wp-config.php` file, which was overriding
   the settings I had defined earlier.
 * Once I removed that duplicate block and cleaned up the configuration, the error
   disappeared and the Site Health now shows “Great job!” 😊
 * Appreciate your help!
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [9 months ago](https://wordpress.org/support/topic/wp_debug-7/#post-18611850)
 * Glad its sorted 🙂

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

The topic ‘WP_DEBUG’ is closed to new replies.

## Tags

 * [wp_debug](https://wordpress.org/support/topic-tag/wp_debug/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [9 months ago](https://wordpress.org/support/topic/wp_debug-7/#post-18611850)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
