• Resolved stefandev

    (@stefandev)


    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?

    • This topic was modified 1 month ago by stefandev.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Janilyn T

    (@janilyn409)

    Hi @stefandev ,

    I checked the latest version of our plugin on our live demo and dev site but the add to cart button was working properly: https://app.screencast.com/A6oyZsnjM1ADN. You can check our live demo: https://demo.wpclever.net/woobt/product/bought-together-04/.

    Please make sure you clear the caches and temporary files from your site and browser as well before checking again. You can also check it in an Incognito or Private tab to be sure.

    If you still encounter any problem, kindly provide your public site link for us to inspect from our end here.

    Best regards.

    Thread Starter stefandev

    (@stefandev)


    Hi Janilyn,
    I see that u fixed it on 7.4.1. Thanks!
    Best regards!

    Plugin Support Janilyn T

    (@janilyn409)

    Hi @stefandev ,

    Thanks for your feedback.

    Please reach out when you need our help again.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.