WordPress admin menu gap when debug mode is enabled?

One way to do that is to enable WP_DEBUG_LOG in wp-config.php. The file will look like this:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true ); //You may also set the log file path instead of just true

Defining WP_DEBUG_LOG as true will save logs under wp-content/debug.log and you’ll find the PHP errors there.

Leave a Comment