“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.
- Enable WordPress debugging by adding the following lines to your wp-config.php file:
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.