
“This site is experiencing technical difficulties” or “There has been a critical error on your website”
These messages indicate a fatal PHP error, usually caused by a problematic plugin or theme.
Solution:
- Enable WordPress debugging by adding the following lines to your wp-config.php file:
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, false);
This will log errors to a file named debug.log in the wp-content folder.
- Temporarily disable plugins and themes by renaming their respective folders via FTP or your hosting control panel’s file manager. If this resolves the issue, reactivate them one by one to identify the problematic plugin or theme.