Know your deadline
| PHP | Security support until |
|---|---|
| 8.1 | Ended 31 Dec 2025 |
| 8.2 | 31 Dec 2026 |
| 8.3 | 31 Dec 2027 |
| 8.4 | 31 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.
wp --info | grep -i "php version"
wp plugin list --update=availableTest on staging
- Update plugins and theme first. Old releases are what break on new PHP.
- Switch staging to the new PHP. Same version you will use in production.
- Turn on logging.
WP_DEBUG_LOGtrue,WP_DEBUG_DISPLAYfalse. - Walk the checkout. Every payment and shipping method, guest and logged in, a coupon.
- Read the log. Fatal errors break things now; deprecations break them on the next upgrade.
// wp-config.php on staging
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true ); // writes wp-content/debug.log
define( 'WP_DEBUG_DISPLAY', false );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 →