Error Adding Products to Cart with Bought Together Plugin
-
Hello,
After last update 7.4.0 I encountered a fatal error with the
WPCleverWoobt::add_to_cart_validation()
function in the woo-bought-together plugin when adding products to the cart via AJAX. The error is due to an argument count mismatch; the function expects 4 arguments, but only 3 are passed in the AJAX context. Here’s the specific error message:[28-Oct-2024 08:14:52 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WPCleverWoobt::add_to_cart_validation(), 3 passed in /wp-includes/class-wp-hook.php on line 324 and exactly 4 expected in /wp-content/plugins/woo-bought-together/wpc-frequently-bought-together.php:153
I’ve rolled back to version 7.3 as a temporary fix. Could you provide guidance on resolving this issue or let me know if an update is available?
- You must be logged in to reply to this topic.