Home » The Blog » WordPress » How to Troubleshoot and Recover Your Broken WordPress Site

How to Troubleshoot and Recover Your Broken WordPress Site

How to fix a broken WordPress website.

The steps to troubleshoot and then, if required, restore a broken WordPress website depend on why you need to restore it in the first place. In addition, most hosting support will ask you if you went through this process before contacting them for help.

The following tips also apply for any indication of a possible conflict. Buttons not working, editor not working, posts not saving. Anything that isn’t working correctly. By going through this process, you can eliminate a conflict as the cause. In most cases, you’ll discover the cause of the conflict so that you can address it and get things up and running again.

Estimated reading time: 8 minutes

First, some WordPress trouble-shooting…

When WordPress updates, there are no guarantees that all the independently developed themes and plugins that exist will work together without issue. WordPress’s responsibility is not to ensure it works with everything out there.

The developer’s responsibility is to ensure that their products — themes and plugins — free or paid — work with WordPress and are updated as necessary. Not using themes and plugins that are kept up to date is one reason why sites break and therefore need to be “restored.”

What are the most likely causes?

  • Have you added any custom snippets to any of your PHP files recently?
  • Did you install any new plugins?
  • Switched themes?
  • Updated plugins or your website’s theme?
  • Your host isn’t using the recommended PHP version.
  • Your site was hacked.

If you can login, sometimes issues will resolve if you resave your Permalinks in Settings > Permalinks. Don’t make any changes — just page down and click Save Changes to see if that resolves things. If not, read on…

If you cannot login…

We will have to change some file names to deactivate them to at least login and determine the problem. Does your hosting have cPanel? Within your cPanel, you’ll find your File Manager, where you can access and change file names.

Another option is to use FTP software. For FTP software (File Transfer Protocol), you can download FileZilla. I use FileZilla and recommend it to my clients.

  1. Login to your server’s cPanel File Manager or via FTP.
    • Go to the “root,” which is generally the public_html directory.
    • Drill down to your wp-content directory. There you will find the directory for plugins.
    • Rename that directory (right-click > rename) from: plugins to: pluginsOFF. This will deactivate all plugins.
  2. Try to login again to your WordPress Admin.
    • If you can now login, you know a plugin is the bad actor. Stay in your dashboard and go back to your cPanel/File Manager or via FTP and reinstate the pluginsOFF back to plugins. You can now resume the plugin testing below.
  3. If you still cannot login and the issue persists after deactivating plugins, do the same with your theme’s specific folder by renaming it so that your theme is deactivated and you can login. Once logged in, follow the following steps.

Check WordPress Plugins First

Deactivate all your plugins. Then check your site. If all is well, you know one of the plugins you are using is causing a conflict. In my experience, plugins are more the cause of conflicts and breaking sites than themes.

Next, reactivate the remaining plugins one by one. Then check your site after reactivating each one to see if the issue is resolved to determine which plugin is causing the conflict. As soon as things don’t work — it’s a good chance the last plugin you reactivated is the cause of the conflict.

You want to regularly check that all your plugins are being tested up to the latest version of WordPress. If you see a nag bar like this on the plugin’s page in the WordPress Plugin repository — this is called a clue.

WordPress plugin not up to date warning!

When you see the above warning or something similar, that is an indication it is time to find a new plugin. One that is kept up to date by the developer.

Is Your Theme Compatible?

So you’ve checked all your plugins, and your site is still broken. How do you know if it is your theme breaking your site? Check with the theme developer to see what version of WordPress the theme is tested up to.

You can verify if your theme is causing the problem by going to Appearance > Themes > then activating the WordPress default theme (Twenty Twenty). If everything functions correctly, you know it is probably your theme choking on the latest version of WordPress. Time for a new theme.

Common Questions: How do I recover?

My theme is not compatible with the latest WordPress version; now what?

Don’t look back — look forward. Immediately contact your theme developer for assistance. If they are unresponsive, there is no time like the present to get your site on a premium theme where you won’t have to worry about this again.

Load up that new theme and customize it to your liking. In many cases getting a theme compatible with the latest version of WordPress will “restore” your site. Then, all you’ll have to do is tweak widget layouts and image sizes.

Did you change any theme files and break the site?

Then you need to restore the files you modified to the previous versions. Hopefully, you did those changes off-line, not in the Theme Editor of WordPress. By off-line, I mean downloading the files, making a copy, and then making the changes to have an original file copy to fall back on.

Adding snippets to the functions.php theme is something that, while sounding easy, can break your site—this is where a WordPress staging site comes in handy.

If you did use the Theme Editor, you should be able to go to a previous backup of the wp-content/themes/your-theme directory and FTP fresh copies of the files you changed up to the server to overwrite your modified versions. You then can easily undo your modifications and restore your site by replacing the revised versions.

Don’t have that backup? (I bet you will moving forward!) Check with your hosting company to see what backups they may be able to restore for you.

Is it not my theme or my plugins? Now what?

It could be the update process was incomplete or corrupted. If this is the case, you’ll want to revert/restore your last functional site backup.

Does your database/website need to be restored?

Quality Manage WordPress hosts allow you to create restore points before making changes or updates. Then restore if necessary. If you are not on a Managed WordPress host, why not?

Check the backup you want to restore and click the Restore button. The next step will be to refresh your permalinks. Go to: Settings > Permalinks and click Save.

If you don’t have a backup, again, contact your hosting company. They may have a backup that they can restore for you. However, it is common to charge a fee to do so.

Shared cheapo hosting just doesn’t cut it for those serious about their WordPress website success. If that server goes down, how do you access your backup copies stored there? That’s why you need off-site backups.

Was your site hacked?

Run a security scan. If the scan shows that your site has been infected with malicious code, you probably need to bring in some help to determine the damage caused and what is required.

You can also contact your host to restore to a clean backup of your site. When sites are hacked, generally speaking, you have to “clean” files (and your database) that have been modified to remove malicious code. Or do a complete restore from a past date pre-infection.

Moving Forward…

I mark my calendar to review all my plugins every quarter and replace those no longer being maintained. So yes, plugins may still work even if they are not up to the latest version of WordPress.

But the longer a plugin is not updated, the higher the risk of a conflict. Or security bugs that hackers can exploit. That means a PIA and downtime for you. There is no need to go through that when it can easily be avoided, right?

I also only use themes that I know keep up with WordPress’s evolution and updates. That is why I gravitate to premium themes, plugins, and services, as they are more apt to be kept updated and offer the support needed if any issues arise.

AUTOMATIC UPDATE TIP: If you have automatic WordPress updates turned on (I’m not a fan of auto-updates…), you’ll want to run through your website after you are notified that an update has occurred. Click around, fill out your forms and make sure everything is operating correctly.

I prefer manual updates. This way, I can backup, update, check my site and address any conflicts right then and there. By taking this approach, I avoid my website being online and broken without my knowledge for any length of time.

WordPress Maintenance is Key

Make your life easier and dramatically reduce the opportunity for conflicts to arise by promptly and adequately updating as needed. Ignoring updates is also a huge security risk. Then, make a point to review that your theme and plugins are regularly tested and compatible with each version of WordPress.

So, as you can see, using quality supported themes, keeping up with WordPress, and having a backup process (with restore functionality) in place facilitates your best chance for a hassle-free recovery.

At your service,

Judith: WordPress Consultant and Coach
WordPress website products and services you can trust!