Updating WordPress safely without breaking your site
Not updating is not an option: outdated plugins are one of the most common ways into a site. But just clicking Update all is risky too. This is how I do it.
- One dedicated contact
- Reply within a few hours
- 15+ years of experience
Why updates sometimes go wrong
WordPress, your theme and every plugin are made by different developers. An update of one can clash with another. Often it is a plugin using something WordPress or PHP no longer supports, a theme with its own WooCommerce templates that no longer match after a WooCommerce update, or an update that stops halfway because the server times out.
The result can be small, such as a shifted layout, or big: a white page or the message that there has been a critical error on the website.
Step 1: a backup you can restore
Right before updating, make a full backup of files and database, and keep it off your server. A backup is only worth something if you know how to restore it. If you have never done that, try it once on a staging site.
Step 2: on a staging site first
A staging site is a copy of your live site at a separate address. You run the updates there first. Many hosts offer one-click staging; otherwise it can be done with a plugin or by hand. Make sure Google does not index the copy and, for a shop, that it does not email real customers.
Step 3: read what changes
For big version jumps, read the plugin’s list of changes (the changelog). Does it mention a minimum PHP or WordPress version, or features being removed? With WooCommerce you can also see under WooCommerce > Status whether your theme uses outdated templates.
Step 4: in a fixed order
Not everything at once, so you know what causes a problem:
- WordPress itself first, then the plugins, then the theme
- Big plugins, such as WooCommerce or a page builder, separately from the rest
- Translations last
- A new PHP version only once everything else is up to date
Step 5: check what matters
After the updates, click through your most important pages: the home page, a few regular pages and your contact form (actually send one). For a shop, place a test order all the way through payment. Also check your server’s error log, because some errors do not show on screen.
If everything works on staging, run the same updates live and check the same things there once more.
If it goes wrong anyway
With a critical error, WordPress often emails the admin a link to recovery mode, where you can deactivate the plugin causing the problem. If you can no longer get into the admin, rename the suspect plugin’s folder through FTP or your host’s file manager. If it does not work quickly, restore your backup and find the cause calmly on the staging site.
Automatic updates: yes or no?
Minor security updates of WordPress itself happen automatically by default, and that is good. Automatic updates for all plugins can be handy for a simple site. For a shop or a site with a lot of custom work I would not switch them on blindly: you only notice a problem when a visitor does.
Leave it to me
In my maintenance I do exactly this: test on a copy first, then live, with daily backups. WordPress maintenance costs €5 a month, WooCommerce maintenance €10 a month, both paid six months upfront. If your site has fallen far behind, I start with a one-off clean-up and update for €49.
Order directly, fixed price
You get your invoice right away and your own project page in My account. Need something else or bigger? Ask for a fixed price.
Good to know
Is your question not here? Feel free to send me a message.
How often should I update WordPress?
Security updates as soon as possible, ideally within a few days. For the rest a fixed rhythm works well, for example every week or every other week.
My site has not been updated in years. Can I update everything at once?
Preferably not live. With a big backlog I work in steps on a staging site, often with a newer PHP version too. That is exactly my one-off clean-up and update for €49.
Do I need a staging site for a small site?
Not necessarily. But then a fresh backup and a check right after updating matter even more.
Say hello
A question, an idea or a job? I reply usually within a few hours, between 08:00 and 20:00.