bigcommerce / bigcommerce-for-wordpress

A headless commerce integration for WordPress, powered by BigCommerce
https://www.bigcommerce.com/wordpress/
GNU General Public License v2.0
109 stars 49 forks source link

PHP 8.0 errors with Mini-Cart and Cart powered by BC4WP #399

Closed ll-r-magner closed 1 year ago

ll-r-magner commented 1 year ago

Expected behavior

Updating wordpress to PHP 8.0, expected nothing to break outside of my custom code.

Actual behavior

Updated to PHP 8.0 and fixed all errors and warnings inside custom code. Bigcommerce Mini Cart and Cart Page are not functioning.

Steps to reproduce behavior

  1. Updated wordpress php to version 8.0 from 7.4.
  2. Astra parent theme
  3. Using BC4WP plugin to run our mini-cart and cart

Screenshot/Video (if applicable)

Example Image

Workaround or possible solution

We can maintain the site on PHP 7.4 until January 24th 2023. Then we will have no choice but to upgrade to 8.0.

ll-r-magner commented 1 year ago

Disregard, im sorry for assuming it was the plugin. I was using Kinsta wordpress debugger mode and it was causing conflicts with cart functionality. All is well. Cheers.

chanceaclark commented 1 year ago

Thanks @ll-r-magner, I'll go ahead and close this!