Moving a WordPress site from PHP 7.4 to 8.1, or 8.1 to 8.3, is a standard piece of maintenance. It’s also where a sleepy plugin you forgot about throws a fatal error you didn’t expect. The compatibility check before the bump is short — under an hour for most sites — and turns the bump from a coin flip into a deliberate change.
What’s happening
Each PHP minor version removes some features that were deprecated in the previous one and tightens behavior on others. PHP 8.0 made many warnings into fatals (e.g., calling a non-existent method on null). PHP 8.1 deprecated implicit nullable types. PHP 8.2 deprecated dynamic properties. PHP 8.3 introduced finer-grained restrictions. WordPress core handles its own compatibility. The plugins and theme are where the bumps hurt — many are no longer maintained, and code written in 2018 may still rely on PHP 5.6 idioms.
How to verify
Before the bump, inventory the site:
wp core version
php -v
wp plugin list --field=name,version,update,status
wp theme list --field=name,version,update,status
Then identify the abandoned ones. A plugin not updated in 2+ years is a candidate to break:
wp plugin list --field=name,version,update,inactive --format=table
The official compatibility check approach is to install the PHP Compatibility Checker plugin and run it for the target PHP version. Results identify which plugins or themes have deprecated or incompatible code.
The fix
-
Inventory and triage. List every active plugin and theme. For each, check:
- Is it still maintained? (Last update date on WordPress.org)
- Does it declare compatibility with the target PHP version?
- Is there a known replacement?
Anything that hasn’t been updated in 2+ years gets flagged for replacement before the bump, not after.
-
Run the PHP Compatibility Checker plugin. Activate it, choose the target PHP version, scan. The report tells you exactly which files have incompatible code. False positives happen — a
Deprecatednotice isn’t a fatal — butErrorsare. -
Test on staging. The most reliable check is to clone the site to staging (WP Toolkit makes this a few clicks), flip the staging cPanel account to the target PHP version via MultiPHP Manager, and browse:
- Homepage
- One article page
- Admin login
- Each plugin’s settings page
- Checkout flow (if e-commerce)
Watch the PHP error log during browsing:
tail -f ~/public_html/error_logFatal errors appear as
PHP Fatal error:entries. Warnings asPHP Warning:— annoying but not site-breaking. -
Address each fatal before going to production. Options in order of preference:
- Update the plugin/theme to a version compatible with the target PHP. Most active plugins ship updates within months of new PHP releases.
- Replace the plugin with a maintained alternative.
- Patch the offending file yourself (only for things you’d otherwise have to abandon).
- Pin the cPanel account to the older PHP version (least preferred — you defer the work).
-
Pay special attention to:
- Custom themes: child themes built ten years ago often have PHP 5.x idioms.
- Commercial plugins not on WordPress.org: these don’t show up in the compatibility checker if it can’t read them. Test each by clicking through every settings page on staging.
- WooCommerce extensions: payment gateways and shipping plugins are common breakers.
-
Schedule the cutover. cPanel > MultiPHP Manager > select the account > set the target PHP version > apply. The change is instant. Smoke test immediately after.
-
Roll back if something breaks. The PHP version change is reversible in seconds — return to MultiPHP Manager and pick the previous version. If you find issues, this is your safety net.
-
For a fleet of WordPress sites needing coordinated PHP bumps, Stack Harbor runs this as a fixed-scope project under enterprise WordPress hosting.