All posts

Upgrading PHP on a WooCommerce store without breaking checkout

Every PHP version gets two years of active support and one more of security fixes. After that, hosts move stores to a newer version, often on a date you did not pick. Most of WooCommerce is fine with it; the plugin that is not usually breaks with a fatal error at the exact point where it runs, which is often the checkout.

Free checkout scan

Enter your store address. A real browser adds a product to the cart and walks the checkout up to the payment step, like a customer, and shows you every step with a screenshot.

  • Free, no account
  • Stops before payment, no order
  • Nothing to install
· Updated · 2 min read
Code on a laptop screen on a desk

Know your deadline

PHPSecurity support until
8.1Ended 31 Dec 2025
8.231 Dec 2026
8.331 Dec 2027
8.431 Dec 2028

Dates from php.net supported versions. Check the minimum and recommended PHP for your WooCommerce and WordPress versions, and your host’s plan for the old one, before it is chosen for you.

bash
wp --info | grep -i "php version"
wp plugin list --update=available

Test on staging

  1. Update plugins and theme first. Old releases are what break on new PHP.
  2. Switch staging to the new PHP. Same version you will use in production.
  3. Turn on logging. WP_DEBUG_LOG true, WP_DEBUG_DISPLAY false.
  4. Walk the checkout. Every payment and shipping method, guest and logged in, a coupon.
  5. Read the log. Fatal errors break things now; deprecations break them on the next upgrade.
php
// wp-config.php on staging
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );     // writes wp-content/debug.log
define( 'WP_DEBUG_DISPLAY', false );
Fatal errors name the plugin

The path in a PHP Fatal error line points to wp-content/plugins/<name>/. Update it, replace it, or keep it off until it supports the new version.

Switching production

Pick a quiet hour, take a backup, switch PHP in the hosting panel, and immediately place a test order. Keep the previous version selectable: on most hosts rolling back is the same switch. Watch wp-content/debug.log or the PHP error log for the first day, and look for the failure mode in WooCommerce checkout not working.

A host-forced upgrade usually happens at night. A scheduled checkout check is what tells you the next morning, not the first customer. Related: updating WooCommerce plugins safely.

Check your own store now with the free WooCommerce checkout checker: it walks the checkout in a real browser, stops before payment, and shows the step where it breaks.

Find out your checkout broke before your customers do.

Real checkout checks for Magento and WooCommerce · free plan · no card requiredWooCommerce checkout monitoring →
FAQ

Common questions

Still have a question?More answers, and a way to reach us.Support →
01Which PHP version should WooCommerce use?

A version with active or security support that your WooCommerce, WordPress and plugins support; check php.net and the WooCommerce requirements page.

02What breaks when PHP is upgraded?

Usually an outdated plugin or theme that uses removed functions, which fails with a fatal error where it runs, often the checkout.

03Can I roll back a PHP upgrade?

On most hosts, yes: switch the version back in the hosting panel. Keep it available until the new version is proven.