• Resolved monicanvicente

    (@monicanvicente)


    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

    (@t-p)

    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

    (@monicanvicente)

    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

    (@t-p)

    Glad its sorted 🙂

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

The topic ‘WP_DEBUG’ is closed to new replies.