How to Complete a WP Debugging Test (WP Critical Error)
The WordPress error message "There has been a critical error on this website" indicates an error has occurred, but doesn’t share any specific information about the error.
To diagnose a WP critical error, you can perform a debugging test and share the error message with the ApproveMe.com team to receive some support. 👏
Follow these steps to complete a debugging test
- To enable debugging in WordPress, add the following small code snippet to your wp-config.php file. This code will prevent error messages from appearing on-screen and instead log them to the /wp-content/debug.log.
/* Switch this value between true and false to enable and disable debugging */
define('WP_DEBUG', true);
/* This will log all errors notices and warnings to a file called debug.log in wp-content only when WP_DEBUG is true */
if (WP_DEBUG) {
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
}
For more information about this code, please see the WordPress Codex entry on this topic for more information, or try a debugging plugin if needed.
- Replicate the error using the same steps you originally took.
- Check your debug log for the error message and share it with the ApproveMe.com team.
- Remove or disable the debugging code when the test is completed.