Contra - A professional network for the jobs and skills of the futureHow to Update PHP in WordPress Without Breaking Your Site
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
How to update the PHP version in WordPress without breaking the site: what I check before and after.
On 21 October, PHP 8.3.36 shipped a critical security fix, and I moved the three WordPress sites I run (two shops and a help site) to it the same evening. Zero PHP errors at the end, but two false alarms on the way, and both taught me something.
Before you switch • Check what WordPress recommends: its requirements page says PHP 8.3 or greater, and its compatibility table marks 8.3 and 8.4 as supported from WordPress 6.7. • Back up the database and files, and make sure you can switch back. If your host lets you pick the PHP version, note which one you're on now. • Save a "before" copy of your key pages: home, shop, a product, cart, checkout. Status code, page size, and whether the page ends properly.
After you switch • Compare each page with its "before" copy. Don't just search the page for "error": my help site talks about "fatal error" and "critical error" on purpose, and a word search rolled it back for nothing. • Think about anything installed by hand on the old setup. Mine was WP-CLI: it wasn't in the new container, my check depended on it, and the store was rolled back while it was working fine. • Check the PHP error log afterwards. Deprecation notices from older plugins usually go there, not to the page.
Which plugin gave you trouble on your last PHP update?
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started