Sorry if this is a basic question, but I'm not a WP expert in any way.
Using WordPress version 6.0.9
I have a blog hosted on someone's server (where I host other sites that I develop, not using WP), and he pointed out to me that there was a 4Gb debug.log
file in there.
As far as I can see, having debugging enabled on a live site isn't a good idea anyway, and I certainly don't want a massive log file.
So, I changed the wp-config.php
file. Before it looked like this (ignoring the bits that aren't to do with debugging)...
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
I changed true
to false
for both WP_DEBUG
and WP_DEBUG_LOG
, but when I tried to access the blog, I got "500 - Internal server error"
I tried all combinations of true
and false
for both settings, but the only one that allowed the site to run was to have both of them true
, which I don't want.
I looked in the debug.log
file to see if that would give any clue, but all I saw were masses of lines of the form...
PHP Deprecated: Creation of dynamic property WP_Term::$term_order is deprecated in C:<PATH_TO_SITE>\wwwroot\wp-includes\class-wp-term.php on line 198
I dumped a list of the unique entries in a file in case it helps.
Anyone any idea how I disable debugging without disabling my blog?