Debug Widget and false positives
-
Greetings,
Hoping you can help me with a slight problem I’m having.
When I enable the Debug Log Widget, the widget only seems to work if using the WP default location:
/wp-content/debug.log
That will kick off a Warning in Site Health so thought I’d move it like so.
Edit the wp-config.php with the following:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', '/somewhere/debug.log');The WP Support Docs say the above is allowed, which does not appear to be true as Site Health still disapproves. Even if in a protected area.
Or could I use
define('WP_DEBUG_LOG', '/home/$Username/debug.log');
which would definitely be secure. Mind you, I don’t know if an absolute path can be used in wp-config.php. Yes | No ?As the Error Log Widget allows for providing an absolute path to the Error Log Location, would updating your plugin to do the same for Debug Log Widget help solve the above? Or would that leave other Plugins wondering where the ‘debug.log’ went to?
Setting up a declaration in .htaccess to limit access wherever I put it, I can do, but not sure if it would be picked up by WP.
Did I miss something, am I whistling Dixie here or is the above just one of those situations one has to live with? (Site Health + false positive = bad)
- The topic ‘Debug Widget and false positives’ is closed to new replies.