You’re defining WP_DEBUG_LOG
twice, first as false
and then as true
. Doing some very rudimentary testing on my local PHP installation…
php > define( 'X', true );
php > define( 'X', false );
PHP Warning: Constant X already defined in php shell code on line 1
php > print_r( X );
1
…it seems clear that the 2nd define
will throw a PHP warning and then be ignored. So, if this is your wp-config.php
file, WP_DEBUG_LOG
is false
.
You should still remove the duplicate line, though.
(I’d also recommend moving all the debug statements to after the /* For developers: WordPress debugging mode. […]
comment block, since that’s where most WP developers will look for it. It’ll be less confusing that way, for you and for anyone else who might end up maintaining your system.)