Your account expired support, please renew to get your support.

Home Forums Themes Support Adding to cart error with “Facebook for woocommerce” plugin

Viewing 14 reply threads
  • Author
    Posts
    • #35978
      yosoloibone
      Support Expired

      Hi,

      When adding to cart a product, I get the fatal error copy-pasted above. Deactivating “Facebook for woocommerce” plugin solves the problem, but what can I do to keep using the plugin?

      Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Facebookcommerce_EventsTracker::set_last_product_added_to_cart_upon_redirect(), 1 passed in /home/backcout/public_html/clonbc/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /home/backcout/public_html/clonbc/wp-content/plugins/facebook-for-woocommerce/facebook-commerce-events-tracker.php:397 Stack trace: #0 /home/backcout/public_html/clonbc/wp-includes/class-wp-hook.php(287): WC_Facebookcommerce_EventsTracker->set_last_product_added_to_cart_upon_redirect(”) #1 /home/backcout/public_html/clonbc/wp-includes/plugin.php(206): WP_Hook->apply_filters(”, Array) #2 /home/backcout/public_html/clonbc/wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Cart.php(406): apply_filters(‘woocommerce_add…’, ”) #3 /home/backcout/public_html/clonbc/wp-includes/class-wp-hook.php(287): Hyyan\WPI\Cart->addToCartHandlerVariable(”) #4 /home/backcout/public_html/clonbc/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #5 /home in /home/backcout/public_html/clonbc/wp-content/plugins/facebook-for-woocommerce/facebook-commerce-events-tracker.php on line 397

      Kind regards

    • #35979
      Harry
      Support Expired

      Hi yosoloibone,

      Thank you for choose our theme.

      The issue because Facebook tracking event not support Ajax.

      Please go to WooCommerce > Settings > Products > Add to cart behavior and uncheck last field.

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #35980
      yosoloibone
      Support Expired

      Thanks a lot for your quick reply

      Same error keeps showing, and now I get a warning above

      Warning: A non-numeric value encountered in /home/backcout/public_html/clonbc/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1655

    • #35981
      Harry
      Support Expired

      Hi,

      I think the issue related to plugin, please try contact to plugin author for support.

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #35982
      yosoloibone
      Support Expired

      Forgive me for insisting but worked fine on the previous theme I used, so in some way should be related to Claue as well

    • #35983
      Harry
      Support Expired

      Can you send me your site url and login credential and check it “Set as private reply”

      We need more check before give you solution.

      Thanks

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #35991
      yosoloibone
      Support Expired
      This reply has been marked as private.
    • #36039
      yosoloibone
      Support Expired
      This reply has been marked as private.
    • #36048
      Harry
      Support Expired

      Hi,

      I check your site and add item to cart it work well without the error. Please check again.

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #36052
      yosoloibone
      Support Expired
      This reply has been marked as private.
    • #36053
      Harry
      Support Expired

      Hi,

      I try with default theme Twenty Twenty have same issue.

      Please go to WooCommerce > Settings > Integrate > Facebook for Woocommerce and click on Manager Connection

      https://prnt.sc/rzt0aj

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #36100
      yosoloibone
      Support Expired
      This reply has been marked as private.
    • #36101
      Harry
      Support Expired

      Hi,

      Please try deactivate plugin one by one to check the issue, sometime the new version of plugin also make the issue.

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #36194
      yosoloibone
      Support Expired

      Hi Harry,

      The issue has been fixed on the last version of “Facebook for woocommerce”, released on friday

      Thanks for the help, kind regards

    • #36195
      Harry
      Support Expired

      You’re welcome.

      Thank you for your info and have a nice day!

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 14 reply threads

You must be logged in to reply to this topic.