Установил плагин Woocommerce Product add-ons и Woocommerce Product bundles.
При добавлении товара в корзину вылезает ошибка
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
При деактивации Product add-ons добавление в корзину работает на ура.
С чем может быть связана эта ошибка и как её исправлять? Эти два плагина должны работать в связке.