Here’s how to fix “The site is experiencing technical difficulties” WordPress error that has confused many experienced WordPress Users. There is nothing worse when in the middle of updating WordPress themes or plugins, to get the dreaded White Screen of Death!
No feedback, no site down message, just a blank white screen!
Read my post linked above for a good overview of what the White Screen of Death (WSoD) is.
Spoiler! Essentially it’s a PHP “fatal error” which stops WordPress from loading anything.
Well, the lovely developers of WordPress decided to do something about it.
The Site Is Experiencing Technical Difficulties
WordPress version 5.2 tries to catch the PHP errors which are the cause of the WSoD.
The result is a new message “The site is experiencing technical difficulties”.
This is much better than a blank screen but it seems that a lot of experienced WordPress users are still unaware of this new message.
Who reads WordPress update blogs anyway, huh?
How to Find the Error
PHP is used in the WordPress core, themes and plugins, so that doesn’t narrow things down really.
The best place to start is by placing WordPress into debug mode and having a look at the log file it generates.
Placing WordPress in Debug Mode
Locate your wp-config.php file.
Your best bet will be to use File Manager in your cPanel hosting account, or equivalent.
The wp-config.php file should be in your root hosting folder and it contains the configuration settings for WordPress.
Add the following lines to the file, somewhere above the line /* That’s all, stop editing! Happy blogging. */
Once the lines have been added and the file has been saved, hit refresh on any page from your site.
In File Manager, navigate to the /wp-content/ folder and view the file debug.log.
Look in this file for a line that says “PHP Fatal Error:”.
Here is an example of what you will see.
PHP Fatal error: Cannot redeclare bp_members_screen_display_profile() (previously declared in /.../buddypress/bp-members/screens/profile.php:22) in /.../buddypress/bp-members/screens/profile.php on line 32
The line in debug.log will give you an exact file and line number where the error occurred.
You can use this to identify whether the error is in a plugin, theme or WordPress core.
Clean Up Debug Code
Remember to remove the debug code lines from the wp-config.php file after you are finished.
The Alternative Fix Method
If the debug method it too confusing for you to wrap your head around, there is another way of resolving the error. It takes a bit more time but will work just fine.
Resolving Theme Conflicts
Because of the error you won’t be able to get into the admin back-end to switch themes.
You will have to do this using your hosting providers file manager system.
Find the current theme folder that your site is using in /wp-content/themes and rename the directory with a post-fix of “OLD”.
For example if your site is running the Astra theme, rename the folder “astra” to “astraOLD”, then refresh the front page of the site which has the error on it.
Don’t worry, you won’t lose all your theme settings. They will be available when you restore the theme folder name at the end if this process.
Note: you will need to have at least one other default theme, like Twenty Nineteen or Twenty Sixteen, in your themes folder for this to work.
If the error is still there after you refresh the font page of the site then the error is not in your theme and you can rename your theme folder back to its original spelling.
If the error disappears and you see your site using one of the default themes, then your theme has the error in it.
You can now access the admin area to update your theme or reach out to the theme developer or company for an update.
Resolving Plugin Conflicts
If the theme isn’t the problem then chances are it will be a plugin at fault.
The quickest way to do this is to use the hosting account file manager application.
Navigate to /wp-content/plugins and rename the “plugins” folder to “pluginsOLD”.
Now refresh the site and login to the admin dashboard and navigate to the Plugins view.
You will notice that all the plugins have been deactivated because WordPress can’t find them as we renamed the folder.
Go back to file manager and rename “pluginsOLD” to “plugins”.
Go back to the plugins view in the admin dashboard and refresh the view.
Now, start to activate each plugin one and a time, refreshing the front of the site until the error message appears again.
Bingo! The last plugin you activated is the one that has the error.
Now you know which plugin is causing the issue you can reach out to the developer or company where you purchased it from for a patch, or in the worst-case scenario, find an alternative plugin