Make WordPress Core

#53689 closed defect (bug) (duplicate)

Site Health false warning for debug log file

Reported by: ucsendre's profile ucsendre Owned by:
Milestone: Priority: normal
Severity: minor Version: 5.2
Component: Site Health Keywords:
Focuses: Cc:



WP core Site Health shows a warning:
Your site is set to log errors to a potentially public file.
My debug settings in wp-config.php:

define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', '/var/www/vhosts/domain.tld/logs/error-debug-warnings.log');

The site root directory is:


The debug log file is outside the site web root folder, therefore I assume it can not be publicly accessible.
It is not a huge issue, only a tiny bug, but I do not like false warnings like this one.

Thank you for the best CMS ever!

Change History (1)

#1 @Clorith
19 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version changed from 5.7.2 to 5.2

Hiya, and welcome to the WordPress trac!

We've already got one ticket discussing this, which was closed a while back in #46689, I'm going to mark this one as a duplicate for now, but if there's any new rationales, besides what's already covered in that ticket, please feel free to update them there, although the ticket is closed for now, discussion can still happen and the ticket can be re-opened if new information that warrants it comes up.

Note: See TracTickets for help on using tickets.