Home › Forums › Themes Support › Adding to cart error with “Facebook for woocommerce” plugin
- This topic has 14 replies, 2 voices, and was last updated 4 years, 8 months ago by Harry.
-
AuthorPosts
-
-
April 10, 2020 at 1:47 am #35978yosoloiboneSupport 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
-
April 10, 2020 at 1:50 am #35979HarrySupport 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 -
April 10, 2020 at 2:06 am #35980yosoloiboneSupport 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
-
April 10, 2020 at 2:18 am #35981HarrySupport 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 -
April 10, 2020 at 2:51 am #35982yosoloiboneSupport 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
-
April 10, 2020 at 5:59 am #35983HarrySupport 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 -
April 10, 2020 at 8:22 pm #35991yosoloiboneSupport ExpiredThis reply has been marked as private.
-
April 15, 2020 at 12:13 am #36039yosoloiboneSupport ExpiredThis reply has been marked as private.
-
April 15, 2020 at 10:02 am #36048HarrySupport 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 -
April 15, 2020 at 3:52 pm #36052yosoloiboneSupport ExpiredThis reply has been marked as private.
-
April 15, 2020 at 7:29 pm #36053HarrySupport 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
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
April 21, 2020 at 4:47 pm #36100yosoloiboneSupport ExpiredThis reply has been marked as private.
-
April 21, 2020 at 4:51 pm #36101HarrySupport 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 -
April 27, 2020 at 5:07 pm #36194yosoloiboneSupport 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
-
April 27, 2020 at 6:35 pm #36195HarrySupport 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
-
-
AuthorPosts
You must be logged in to reply to this topic.