How To Upgrade Your WordPress Version – Without Losing Data

Upgrade

Upgrading WordPress can appear to be as simple as pushing a button. But it really isn’t. Not if you want to do it safely — and avoid the risk of bringing your site down, or even worse, losing data.

Recommended WordPress Upgrade Process

  1. Backup your database
  2. Backup your website files
  3. Verify your backups include everything (test them!)
  4. Deactivate your plugins
  5. Download the updated WordPress version directly from WordPress
  6. Delete the old files (with some important exceptions, see below)
  7. Upload and extract the new WordPress version
  8. Go to ‘yoursite.com/wp-admin/upgrade.php’ in your web browser to check if a database update is required, and apply it if needed
  9. Upload any plugin and theme updates
  10. Reactivate your plugins, checking for any problems as you go
  11. Clear the cache for your site
  12. Test the site is fully functioning

Woah, That’s A Lot Of Updating

This manual update process may seem like overkill – and it may well be, depending on how critical the site you are upgrading is to your business.

You might wonder why all this is necessary when WordPress itself just gives you a button to push…

WordPress update button

Well, it’s all about choice and flexibility with WordPress – you are in charge, if you want to be. So there is the option to take the quick and risky way, or the slower and safe way without losing data.

Or some middle ground that you determine is the right process for your site.

Just bear in mind the nice convenient WordPress ‘Update’ button will not back your site up. Or check plugins for any conflicts. Or test that your site still works. Or fix any problems you might encounter of course. So should at least have backups, and know how to use them! Updating manually is the safest route.

You can save yourself all the hassle of course if you simply outsource your WordPress management. For small businesses this is a no-brainer. If it’s just a hobby site, it may not be worthwhile.

Deleting Old Files When Updating?

It may seem extreme to delete the old WordPress install before adding the new one. But this is still currently how WordPress themselves recommend you do it – despite that nice easy button option.

Why? Two reasons, the update process may not overwrite all the files (depending on user/file permissions) it needs to. And you may end up with files that are no longer required left hanging around.

Files Not To Delete

It’s really important that you don’t blindly delete the entire folder where WordPress is installed though. These files should NOT be deleted:-

  • wp-config.php – this contains the database login details amongst other things
  • wp-content folder – all the Media (images, photos etc) you upload are stored in here
  • .htaccess file – you may have extra custom rules in here that make your site work

Of course if you have also uploaded other files or customisations in other places, you’ll need to add those to the list too.

More WordPress Questions & Answers

What Are WordPress Automatic Updates?

Some bugs, typically rare ones, can leave websites highly vulnerable to security problems. If the WordPress team discover a problem that is serious enough, they can push WordPress (or a plugin) to upgrade itself.

These security updates are normally fairly minor in terms of code changes, so the risk of breaking anything is very small. And such updates are not taken lightly.

You can however disable such updates if you wish. We’re not going to cover that here however as 1. we don’t recommend it, and 2. you do need specialist technical knowledge to do it.

Will A WordPress Update Affect My Site?

Potentially, yes.

They are always adding new functionality. At the same time, you or your web host will also be updating php and MySQL versions — the technologies that make your site work. So sometimes older code needs updating to cope with those changes too. This can cause problems if e.g. the version of php on your web server hasn’t been updated in a long time.

Similarly, changes to the way WordPress works can also affect plugins or your theme. If a plugin has not been properly maintained it may stop working when you update WordPress.

Generally everyone does their best to avoid these conflicts, but they do happen from time to time. As long as you have a backup (and know how to use it) you can always go back to a working website if things go wrong.

How To Upgrade Very Old Versions Of WordPress

If the WordPress version installed is actually more than a couple of major versions old, it’s safer to upgrade incrementally. That is, don’t jump too many versions in one go to get to the latest version.

A major release is an increase in version number from e.g. 4.8 to 4.9. It’s wise not to skip more than one major version – so you can safely go from 4.7 to 4.9. But if your site is still on version 4.5, you’d be wiser to upgrade to version 4.7 first, then to 4.9.

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *