Host forcing a PHP upgrade and worried the site will break?
Do the upgrade on a copy first, with error logging on, and click through every path that takes money or logs people in. Old custom themes and abandoned plugins are what break, and you find them on staging instead of on the live site.
The problem
Your host is moving the site to a newer PHP version and you are worried it will break. The thing to worry about is custom themes. Plugins from active makers have been kept current for years. A theme written once for one site has not.
How to fix it
- Find your PHP version under Tools, then Site Health, then Info. Find the version the host is moving you to. PHP 7.4 and 8.0 are long past end of life, and 8.1 stopped getting security fixes at the end of 2025, so the target is usually 8.3 or 8.4.
- List every plugin and theme with its last update date. Anything its maker has not touched in a couple of years goes on a suspect list.
- Clone the site to staging on the new PHP version, turn on WordPress debug logging, and run a compatibility scan. It catches removed functions and old-style constructors. It misses anything that only fails when the code runs.
- Use the site: log in, reset a password, submit every form, buy something, renew a subscription, enroll in a course, search, and open the admin screens staff use daily. Read the log after each step. Fatal errors take the site down. Deprecation notices can wait.
- Fix, update or replace what broke.
- Switch the live site at a quiet hour. Most hosts can switch PHP per site and back in a minute. Watch the log and run a test checkout in the first hour.
When to stop
Stop when the site has a custom theme, takes payments or renews subscriptions, or the copy already throws fatal errors and the host has set a date.
Or I can do it for you
You do not have to do this yourself. A PHP upgrade is covered for my clients on a monthly maintenance plan. For anyone else it is a one-off job: I tell you what will break and quote the fix. See DNS, hosting and migrations or get a quote.
This happened
A regional trade association ran a member directory on a custom theme written years ago, and its host was moving the site from PHP 7.4 to 8.3. I audited the theme and found a fatal error waiting to happen: a class with a PHP 4 style constructor and a database call passing an argument newer PHP no longer accepts. It worked on the old version and would have stopped the page on the new one. I fixed it, and flagged a deprecated library bundled in the theme and some dead code for later.