• Resolved kolleradam

    (@kolleradam)


    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)
  • Roxy

    (@roxannestoltz)

    Hi @kolleradam ,

    Thanks for reaching out!

    I understand that you are having issues with your site after updating to PHP 8.0, is this correct?

    Could you please share a copy of your site’s System Status report so we can get a better idea of your sites current environment. You can find it via WooCommerce > Status. Select Get system report and then Copy for support.?

    Additionally, please share the fatal error logs by navigating to WooCommerce > Status > Logs and choosing the fatal-errors.log (if any) from the drop-down menu.

    Once you’ve done that, you can share the results in your response here.

    Cheers!

    Lots of things can cause this – plugins, themes, custom code etc

    First thing though. Are you sure the php8 installation on your server has all the required libraries? https://zeropointdevelopment.com/required-php-extensions-for-wordpress-wpquickies/ Had this issue a few times with clients

    Roxy

    (@roxannestoltz)

    Hi @kolleradam ,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce breaks with php 8.0’ is closed to new replies.