PHP 8.2 stops getting security fixes on 31 December 2026. Your store will not stop working that day, but from then on any new flaw found in PHP 8.2 stays open on your server. The fix is to move the store to PHP 8.3, and to do it on a test copy first so checkout does not break on a live store.
Source: php.net supported versions lists 8.2 security support until 31 December 2026 and 8.3 until 31 December 2027. WooCommerce's server requirements ask for PHP 8.3 or greater, tested up to 8.4.
1. Check which PHP version you run
- In WordPress, go to WooCommerce, Status.
- Open the Server environment section and find PHP Version.
- Write it down. This is your original PHP version, and you will need it if you roll back. If it says 8.2, or anything lower, plan the move. If it says 8.3, you have until 31 December 2027. If it says 8.4 or higher, each branch has its own end date, so check the php.net supported versions page.
Your host's control panel also shows the version, and it is where you will change it.
2. Take a backup
Back up the database and the wp-content folder (themes, plugins, uploads). Check you can find the backup before you go on. Also ask your host now whether you can switch PHP back to your original version after the change, and note the answer.
3. Make an isolated test copy
Ask your host for a private test copy of the store, or restore your backup to a separate private WordPress install. Do these steps before the copy first runs, because a clone of a live store can send customer email and run queued jobs the first time it loads:
- Keep it private from the first request: put it behind a server-level password, on a test area your host provides or a separate private install, and ask search engines not to index it. Do not open the copy in a browser until the next steps are done.
- Send all email from the copy only to a test mailbox or a mail-capture inbox you control, never to customers. Set this up before the first load, and send one test message to prove it lands there.
- Stop scheduled jobs before the first load. Ask your host to disable any cron jobs that target the copy and to switch off the Action Scheduler runner on it, following the test-copy steps in WooCommerce's Subscriptions documentation. Adding
define( 'DISABLE_WP_CRON', true );to the copy'swp-config.phponly stops page-load cron, so it is not enough alone. Pause subscription renewals too. - Switch payment gateways to sandbox or test credentials, replace live API keys, and disconnect every integration that can reach live systems (stock, shipping, CRM, marketing, accounting).
- Leave the copy on your original PHP version for now.
4. Rehearse the change on the copy
- On the copy, still on your original PHP version, switch on debug logging by adding
define( 'WP_DEBUG', true );anddefine( 'WP_DEBUG_LOG', true );towp-config.php. Switch it off again when you finish. - Click through the admin, the shop, a product, the cart and checkout.
- For each plugin or theme that needs it, look at its page on wordpress.org or the vendor's site. Check the vendor's PHP compatibility notes or changelog for PHP 8.3 (the "Tested up to" field on wordpress.org is the WordPress version, not PHP).
- Update or replace plugins and themes on the copy, still on the original PHP version, one at a time, checking the copy after each. If an update says it needs a newer PHP, stop, switch the copy to PHP 8.3 at that point, and write down where.
- When all updates are in, switch the copy to PHP 8.3 in the host's PHP settings, if you have not already.
- Now, on PHP 8.3, click through the admin, the shop, a product, the cart and checkout again. Then open
wp-content/debug.log. Lines marked Fatal error, or Deprecated, name the plugin or theme file at fault. Update or replace those and check again. - If a plugin has no update and breaks on 8.3, find a replacement, or ask us. Do not leave it as it is: the old plugin is the reason you are stuck on an old PHP.
- Write down the exact sequence: every update or replacement, in order, with the PHP switch at its place in the list.
- Rehearse it: make a fresh isolated copy (step 3), starting on the original PHP version, and run your written sequence from top to bottom. Fix the list and repeat on a new copy until it runs clean. Use this same sequence on the live store.
Our guide to the error after an update shows how to read the error log in more detail.
5. Test checkout on the copy
Add a product to the cart, go through checkout and pay with each payment method in its own test mode, never with real cards. Check the order appears, the confirmation email arrives in your test mailbox (not a customer's) and stock goes down. If it hangs or fails, our checkout guide lists what to check.
6. Switch the live store
- Pick a quiet hour, not during a sale.
- Switch on Coming soon mode (WooCommerce, Settings, Site visibility) so nobody checks out during the change.
- Take a fresh backup of the database and
wp-contentnow, after public checkout is paused. Note the time. - Note the current PHP version, and confirm your host can set it back.
- Run the sequence you rehearsed, in the same order, with the PHP switch at the same place in the list.
- Open WooCommerce, Status and check PHP Version now says 8.3.
- Place one low-value order you can refund straight away, and check the order, the email and stock. Only when checkout works, turn Coming soon mode off.
7. Roll back if it breaks
- Keep Coming soon mode on while you roll back.
- Set the host back to the PHP version you wrote down at the start, if your host supports it. Changing PHP alone does not touch files or the database, so this does not undo anything else.
- If you updated plugins or themes, check whether the problem is gone. Reinstalling old plugin or theme files is only safe if the update did not change the database. If an update ran a database upgrade or migration, old files can fail against the new data, and you need to restore the database backup from step 6 as well as the files.
- Before any database restore, take a fresh export of the current database. If wp-admin is down, ask your host to export it. A restore erases everything since the backup: new orders and payments, and also refunds and fulfilment changes on existing orders. Check your payment provider for what happened since the backup and keep the export.
- After the restore, reconcile new orders and changes to existing orders (refunds, shipped orders, status changes) using the export and the payment provider, re-create what is missing and tell those customers.
- Place a test order and check checkout works. Turn Coming soon mode off only then.
- Find the plugin or theme that failed on the test copy, fix it there, rehearse again on a fresh copy, and try again before the end of December.
Your old PHP version is a place to wait for a few weeks, not for good.
How to stop it happening again
- Look at the PHP row in WooCommerce, Status each time you update, and move up a version every year or so, not in the last week.
- Keep plugins you can still get updates for. Remove ones that are no longer maintained.
- Always test a PHP change on a copy first.
When to ask us
If you do not want to do this yourself, we make a private copy of your store, move it to PHP 8.3, fix what breaks, test checkout, and then switch the live store. It is a Store fix: £149, or $179 for US stores, paid up front, with a full refund if we cannot fix it. If you want updates and PHP changes handled every month, Care is £99 or $129 a month, with updates done on a copy first and a daily checkout check.
Common questions
When does PHP 8.2 stop getting security fixes? On 31 December 2026, according to php.net's supported versions page. PHP 8.3 is supported for security until 31 December 2027.
Will my store stop working on 1 January? No. PHP 8.2 keeps running. It just stops getting security fixes, so any new flaw found in it stays open.
Which PHP version should I move to? WooCommerce's server requirements page asks for PHP 8.3 or greater, tested up to 8.4. WordPress lists 8.2 and 8.3 as supported. 8.3 is the safe step from 8.2.
Can I just switch the version at my host and see? Not on a live store. A plugin that is not ready for the new version can show an error screen and stop checkout. Test on a copy first.