Title: Php 8.1
Last modified: September 29, 2022

---

# Php 8.1

 *  Resolved [formaead754](https://wordpress.org/support/users/formaead754/)
 * (@formaead754)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-8-1-16/)
 * Hello Guys, I’m doing some testing of the latest version of php 8.1, Every time
   I update from version 7.4 to 8.1 it informs that there is a critical error on
   the site, this is happening when I try to activate the woocommerce plugin.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * (@margaretwporg)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-8-1-16/#post-16057267)
 * Hi [@formaead754](https://wordpress.org/support/users/formaead754/)
 * I understand that when you are updating PHP from v7.4 to v8.1, you are getting
   a critical error on the site, and this is happening when WooCommerce is activated.
 * WooCommerce is compatible with PHP 8.1. We recommend that you first disable all
   plugins except WooCommerce, switch to a default theme such as Storefront, and
   then update PHP. The it shouldn’t be giving errors.
 * Once this is done, then activate the remaining plugins and the theme one by one.
 * You can create a duplicate/staging site to test this. Many hosting providers 
   offer site staging facilities, but if you don’t have such a feature, you can 
   create one with the [WP Staging](https://wordpress.org/plugins/wp-staging/) plugin.
 *  Thread Starter [formaead754](https://wordpress.org/support/users/formaead754/)
 * (@formaead754)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-8-1-16/#post-16069294)
 * Hello, I did as instructed and it continues to give a critical error on the site
   when I switch to 8.1, what should I do?
 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-8-1-16/#post-16072175)
 * Hi there [@formaead754](https://wordpress.org/support/users/formaead754/) 👋
 * > I did as instructed and it continues to give a critical error on the site when
   > I switch to 8.1, what should I do?
 * How possible is to create a new WordPress test installation, using PHP 8.1?
    
   Once ready, feel free to install and activate WooCommerce, and see if the error
   persists.
 * Let us know how it goes!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Php 8.1’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/php-8-1-16/#post-16072175)
 * Status: resolved