To activate debugging mode, take the following steps:
- Connect to your WordPress site using your preferred SFTP client.
- Once connected, locate the
wp-config.phpfile in the root directory of your WordPress installation. - Open the
wp-config.phpfile in your text editor. - Find the section titled For developers: WordPress debugging mode.
- Update the code to look like this:
if ( ! defined( 'WP_DEBUG') ) {
define( 'WP_DEBUG', true );
if ( WP_DEBUG ) {
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );
}
}
Save the changes you made to the wp-config.php file.
This will enable debug mode, prevent any logging from being displayed on the front end, and log any errors or calls to error_log to a debug.log file.
You can read more about these settings, as well as additional debugging settings you can enable the WordPress Advanced Administration Handbook
