Woocommerce breaks with php 8.0
-
So I had php 7.4 installed along with woocommerce and gang of other woocommerce extensions, and everything worked fine. I updated to php 8.0 and I get critical errors all over the site and even in the backend inside of the dashboard. For instance, when I’m on a page on the front-end where woocommerce is being used, I receive this error when I set (‘WP_DEBUG_DISPLAY’, true ) and no products are visible as a result. Any help or guidance would be greatly appreciated!
apply_filters(Array, Array) #1 /chroot/home/a79231c9/46121720ba.nxcli.io/html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(639): apply_filters('post_class', Array, Array, 59737) #2 /chroot/home/a79231c9/46121720ba.nxcli.io/html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(727): wc_get_product_class(Array, Object(WC_Product_Variable)) #3 /chroot/home/a79231c9/46121720ba.nxcli.io/html/wp-content/themes/components-theme/woocommerce/content-product.php(30): wc_product_class('', Object(WC_Product_Variable)) #4 /chroot/home/a79231c9/46121720ba.nxcli.io/html/wp-includes/template.php(785): require('/chroot/home/a7...') #5 /chroot/home/a79231c9/46121720ba.nxcli.io/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/chroot/home/a7...', false) #6 /chroot/home/a79231c9/46121720ba.nxcli.io/html/wp-content/themes/components-theme/woocommerce/archive-product.php(148): wc_get_template_part('content', 'product') #7 /chroot/home/a79231c9/46121720ba.nxcli.io/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/chroot/home/a7...') #8 /chroot/home/a79231c9/46121720ba.nxcli.io/html/wp-content/themes/components-theme/woocommerce/taxonomy-product-cat.php(23): wc_get_template('archive-product...') #9 /chroot/home/a79231c9/46121720ba.nxcli.io/html/wp-includes/template-loader.php(106): include('/chroot/home/a7...') #10 /chroot/home/a79231c9/46121720ba.nxcli.io/html/wp-blog-header.php(19): require_once('/chroot/home/a7...') #11 /chroot/home/a79231c9/46121720ba.nxcli.io/html/index.php(17): require('/chroot/home/a7...') #12 {main} thrown in /chroot/home/a79231c9/46121720ba.nxcli.io/html/wp-includes/class-wp-hook.php on line 310
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Woocommerce breaks with php 8.0’ is closed to new replies.