Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Our Host Says Our WordPress Site Must Move Off Its Old PHP Version, but It Breaks When We Try. What Do We Do?
Problems We Solve

Our Host Says Our WordPress Site Must Move Off Its Old PHP Version, but It Breaks When We Try. What Do We Do?

WordPress stuck on old PHP because the site breaks on newer versions? SpiderHunts finds the incompatible code, fixes or replaces it and upgrades PHP safely.

Updated 3 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Sites stuck on an old PHP version usually have one or two plugins, a theme or custom code that uses features newer PHP removed. We scan the codebase for incompatibilities, test the site on the target PHP version in staging, fix or replace what fails, and then switch live over with a rollback ready.

The email from your host

The host writes to say the PHP version your site runs on is end of life and will be switched off, or that staying on it will cost extra. Someone tried switching to the newer version in the control panel. The site went blank, or the contact form stopped working, and they switched back.

Now the site sits on software that no longer gets security fixes, with a deadline approaching and no clear idea what is incompatible.

Why the upgrade breaks things

PHP is the language WordPress runs on. Each major version removes old functions and becomes stricter about code that was always slightly wrong. WordPress core itself keeps up. The problems are nearly always in the parts added on top.

SourceWhy it fails on newer PHP
Old versions of pluginsWritten for PHP that allowed things the new version rejects
Abandoned pluginsNo updates will ever come
Custom or premium themeOld code, often with custom functions added over the years
Snippets in functions.phpCopied from forums years ago, never revisited
Bundled libraries inside pluginsAn old copy of a library that newer PHP cannot run

The root cause is usually that updates stopped at some point, so the site was frozen in a state that only works on the old PHP.

What staying on old PHP costs

Unsupported PHP versions stop receiving security fixes, so any vulnerability found later stays open on your server. Newer plugin versions often require a newer PHP, so you cannot update them either, which compounds the risk. Hosts may charge for extended support on old versions or move you onto it without asking. And older PHP is generally slower than current releases.

Being stuck also limits every decision around the site. You cannot easily change host, because the new host may not offer the old version at all. You cannot add modern plugins or integrations, because they expect current PHP. And any developer you bring in has to work around the constraint before doing anything useful.

How we get the site onto current PHP

  1. Back up the site and set up a staging copy running the PHP version you are moving to.
  2. Run compatibility scans across the theme, plugins and custom code to list likely problems.
  3. Turn on full error logging on staging and work through every template, form, checkout and admin screen to catch what the scan misses.
  4. Update plugins and the theme to versions that support the new PHP, fixing anything that breaks along the way.
  5. Replace abandoned plugins with maintained alternatives, or with a small piece of custom code if the job is simple.
  6. Fix custom theme code and snippets directly, moving them into a child theme or a site plugin so they survive future updates.
  7. Switch the live site to the new PHP version at a quiet time, with the backup and the old version available if something unexpected appears.
  8. Leave a note of what changed and set up regular updates, so the site does not fall behind again.

After the upgrade

The site runs on a supported PHP version that receives security fixes. Plugins can be updated again. The host's deadline is no longer a threat. You know which parts of the site are custom and who needs to look after them.

Is your site in this position?

  • Your host has warned about an end-of-life PHP version
  • Switching PHP version in the control panel broke the site
  • Plugins refuse to update because they need newer PHP
  • Site Health in WordPress flags the PHP version
  • The theme was custom built and the developer has gone
  • Nobody knows what code has been added to functions.php

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

Can we just stay on the old version?

For a short while, possibly, but it stops receiving security fixes and hosts increasingly remove it. It is a risk that grows over time.

Will the upgrade change how the site looks?

It should not. The aim is the same site running on current software. If a replacement plugin looks different, we match it to your design.

Do we need a new theme?

Not usually. Most themes can be fixed. If the theme is so old that fixing it costs more than replacing it, we explain why before suggesting it.

What affects the cost?

How far behind the site is, how many plugins are abandoned and how much custom code needs rewriting.

Keep reading

More on Problems We Solve

Start here

WordPress problem nobody has got to the bottom of?

Tell us what the site is, what is going wrong and who has looked at it so far. We will find the cause and tell you honestly what it takes to fix. If it turns out to be a small job, we will say so.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →