Wealthy Affiliate will teach you how to build a long term business

How to Have Stress Free WordPress Upgrades

WordPress logo. Every WordPress upgrade brings howls of anguish on Twitter and other forums as installations that were working perfectly well prior to the upgrade suddenly crash.

Some people ignore WordPress upgrades in order to avoid the problems – if it ain’t broke don’t fix it.

But that’s not smart because many of the upgrades are designed to plug security holes.

So here’s a process for doing WordPress upgrades that will enable you to understand what’s causing the problem (if you experience one) and, therefore, what you need to do to fix it.

Before you start

It’s difficult to over-emphasise the benefit of having good WordPress hosting.

I use Hostgator because they have excellent support for WordPress, but there are other hosting companies that WordPress recommends – see the list here.

As they say on that page: WordPress works best when it’s in a rich hosting environment.

If you’re with a hosting company that’s not optimum for WordPress, the possibility of problems arising is going to be greater – so you should really move to one that offers good WordPress support.

Process for doing WordPress upgrades

So, assuming you’re using a WordPress-friendly hosting company, here’s the process I go through for upgrades:

Step1:

Make sure all your plugins and themes are up to date, and upgrade any that have upgrades available.

Step 2:

Back up your entire site – both database and system files. I wrote more on backing up WordPress here.

Step 3:

Deactivate all your plugins.

Although the WordPress automatic (one-click) upgrade process deactivates your plugins prior to doing the actual upgrade, it also reactivates them all immediately after.

Because of that, if one of your plugins causes a problem you’re not going to know which one it is – you’ll just see the problem.

So you need to keep control by reactivating them individually and manually.

Any problem that results from a WordPress upgrade is 99% certain to be caused by a plugin. (The other 1% will be a theme!)

Step 4:

Do the WordPress upgrade.

With all your plugins deactivated, there’s no reason not to use the one-click upgrade option but, if you’re happier doing it manually, the choice is yours.

Step 5:

In a new tab, navigate to your site so you’re viewing the front page.

Make sure everything is as it should be, but remember that with all your plugins deactivated any layout features driven by a plugin will not be working.

If there’s a problem while all your plugins are deactivated then the cause will be a theme.

So switch to the current WordPress default theme (TwentyTen at the time of writing) and check your site again.

Step 6:

Assuming all is well when you view your site, reactivate one plugin. Then switch to the tab in which you’re viewing your site and click the refresh button.

Make sure everything is as it should be and, if it is, repeat the process with each of your plugins in turn. Check your site after each one until they’re all reactivated.

If you’re running a cache plugin reactivate that one last.

If there’s a problem

If you find a problem when you refresh the view of your site, switch back to the other tab and deactivate the plugin you just activated.

Then check your site again by refreshing the screen.

If the problem has disappeared you will know which plugin is the cause.

At this point your best bet is to leave the plugin deactivated. Often the plugin author will issue an upgrade within a couple of days.

However, some older plugins may no longer be supported. In this case you will need to find another way of doing what the plugin was doing for you.

Finally, if a plugin causes a Fatal Error and you get a white screen, you’ll need to access your site files via FTP or your hosting company’s file manager.

Find the plugin in the wp-content/plugins folder and delete it.

Remember – 99% of problems experienced after WordPress upgrades will be plugin related.

Which is one of the reasons I wrote here about the need to use as few plugins as possible.

Cheers,

Martin Malden

 

Wealthy Affiliate will teach you how to build a long term business

Comments on this entry are closed.

  • Ryan 1 March, 2011, 8:55 pm

    Wordpress upgrades remind me a lot of paying the bills… before you know it, it’s the end of the month and you have to do it again. It always feels like you “just” did it.

  • Will Rendle 7 March, 2011, 11:43 pm

    Really good advice, and am glad you sent me the this link as I am new to WordPress and all the help is much appreciated,
    Cheers

    Will

    • Martin 8 March, 2011, 7:33 am

      You’re very welcome, Will.

      There’s a lot of WordPress articles on here – all of them under the WordPress category (under the ‘See Articles On:’ section towards the top of the first sidebar).

      If you have any questions that aren’t covered in them let me know,

      Cheers,

      Martin.

  • Roy 2 April, 2011, 1:11 am

    How about just not upgrading? If it’s not broke, why fix it?

    • Martin 2 April, 2011, 8:07 am

      Hi Roy,

      The primary reason is because the longer you don’t upgrade the more likely you are to be hacked.

      That will stop all search engine traffic dead in its tracks and may result in your site dumping malware on your visitors’ PCs.

      A secondary reason is that you’ll lose out on more efficient coding (which will make your pages faster to load), and new features.

      There are probably other reasons, but those two are good enough for starters! 🙂

      Cheers,

      Martin.

  • Neil 6 April, 2011, 9:12 pm

    It’s okay to say you will be hacked if you don’t upgrade but it’s a real pain when you have paid for plugins that stop working after you have updated.
    Even some of the free plugins can have issues so I do tend to leave the update for about month unless I’m really confident that nothing is going to stop working.

    • Martin 6 April, 2011, 10:04 pm

      Hi Neil,

      Sure – if it works for you…

      Cheers,

      Martin.

  • Jupiter Jim 7 January, 2012, 10:32 am

    Step 3. De-activate all the plugins! That’s the one everyone forgets! It can be so important too! I’ve never had any problems, but I have been told to de-activate the plugins so I guess I should start doing that!

    thanks for the Great article and the CommentLuv!

    Sincerely,

    Jupiter Jim

    • Martin 7 January, 2012, 10:28 pm

      You’re welcome 🙂

      Cheers,

      Martin.