D
D
Danil Tivikov2018-12-25 16:41:42
WordPress
Danil Tivikov, 2018-12-25 16:41:42

Problem with product add-ons?

Installed Woocommerce Product add-ons and Woocommerce Product bundles.
Error when adding item to cart

Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Product_Addons_Cart::add_cart_item_data(), 2 passed in /usr/share/nginx/doughandcopizza_co_uk/wp-content/plugins/woocommerce-product-bundles/includes/compatibility/modules/class-wc-pb-addons-compatibility.php on line 178 and at least 4 expected in /usr/share/nginx/doughandcopizza_co_uk/wp-content/plugins/woocommerce-product-addons/includes/class-wc-product-addons-cart.php:189 Stack trace: #0 /usr/share/nginx/doughandcopizza_co_uk/wp-content/plugins/woocommerce-product-bundles/includes/compatibility/modules/class-wc-pb-addons-compatibility.php(178): WC_Product_Addons_Cart->add_cart_item_data(Array, 727) #1 /usr/share/nginx/doughandcopizza_co_uk/wp-includes/class-wp-hook.php(288): WC_PB_Addons_Compatibility::bundled_item_addons_stamp(Array, 7) #2 /usr/share/nginx/doughandcopizza_co_uk/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array) #3 /usr/share/nginx/doughandcopizza_co_uk/wp-content/plugins/woocommerce-product-bundles/includes/clas in /usr/share/nginx/doughandcopizza_co_uk/wp-content/plugins/woocommerce-product-addons/includes/class-wc-product-addons-cart.php on line 189

When Product add-ons are deactivated, adding to the cart works with a bang.
What could be causing this error and how to fix it? These two plugins should work together.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ADvi, 2019-01-03
@ADvi

1. Check the compatibility of WooCommerce versions and the specified plugins.
2. Contact the technical support of the mentioned plugins.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question