Debug WordPress

Copy and paste the following into your wp-config.php file, above the “happy Blogging” comment.

@ini_set( 'log_errors', 'On' );
@ini_set( 'display_errors', 'Off' );
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

All errors or notices will now be saved into a debug file which you can find at:

/wp-content/debug.log

Leave a Reply

Your email address will not be published. Required fields are marked *

Up Next:

How to rename a file on Linux Command Line

How to rename a file on Linux Command Line