Conversation
supportYour plugin is repeatedly generating the error below. The line in the code that is incorrect is line #40 in awfm-frontend.php You might want to update it as suggested to help people not get errors constantly in their logs. The The “add_to_cart_fragments” hook uses out of date data structures and function is deprecated since version 3.1.1. Replace with woocommerce_add_to_cart_fragments.
Bump I have this issue too!
We’ve updated the plugins in order to make compatible with latest WooCommerce depreciated function. Would you please check download latest version of the plugin and verify? If you are still getting that kind of problem, we’ve now controlled the version checking function with "awfm_woocommerce_fragments_compatibilty" action hook. From which, you can extend by yourself to overcome the issues.
Hey I have version 2.6.0 it looks like that version was updated 4 months ago? I do not know how to carry out the instructions you have said. Are you intending to fix this bug? Or are you able to provide more detailed instructions as to how I can stop this? My error logs are going out of control with this bug and it is filling up my server quickly. Please advise. thank you very much This reply was modified 8 years, 9 months ago by kombilife .
Sorry for your inconvenience, If you haven’t changed any files from the version 2.6.0, you just need to update the plugin with latest release 3.1.1 Does this make sense?
Oh you are talking about WC. Yes I already have v 3.1.1 installed and this error is happening. Incidentally they just updated to 3.1.2 (but I’m sure you will get that notification too) So what I am saying is I have the latest version of your plugin and v 3.1.1 WC but am still seeing these logs and have to go in and clear it everyday. Please advise, thanks
Nopes, I’m talking about “Woo Floating Minicart 3.1.1”, have you updated to this version?
Yep sorry my bad – thanks very much for your help.
For confirmation only: Are you still getting compatibility issues (after updating Woo Floating Minicart 3.1.1 plugin) on error log?
Mate, so sorry for the confusion, it wasn’t your plugin that was causing the error at all. Sorry about this, thanks for your time.
The “add_to_cart_fragments” hook uses out of date data structures and function is deprecated since version 3.0.8. Replace with woocommerce_add_to_cart_fragments. Hi! I am getting the above error. Because of this my cart becomes empty when I add something and change the page to add another thing to the cart.It’s happening for the first add when I come back to the previous page it’s showing the items in the cart but as I mentioned not showing when page is changed for the first time. Please help to solve this issue. Thankyou This reply was modified 8 years, 9 months ago by komalnaqvi .
I have Version 3.1.1 of this plugin but still issue is there. This reply was modified 8 years, 9 months ago by komalnaqvi .
Would it be possible to share your WP credentials privately in my email, BUT NOT PUBLICLY HERE, so that I could debug the issue?
Hi, I have the same error: The “add_to_cart_fragments” hook uses out of date data structures and function is deprecated since version 3.1.2. Replace with woocommerce_add_to_cart_fragments. It’s been crashing my site 🙁 I’ve got the latest update: Version 3.1.2 | By Automattic Can anyone help?
Yes, WooCommerce deprecated its previous “add_to_cart_fragments” hook in their latest release. To overcome the issues, we’ve also added some functions to check WooCommerce version first and fire appropriate minicart hook on Woo Floating Minicart 3.1.1. Just to confirm, have you updated “Woo Floating Minicart 3.1.1” too? This reply was modified 8 years, 9 months ago by Shiva Shanker Bhatta .
I’m sorry if this is really obvious, but I don’t know how to check this..? I installed the latest Woocommerce update. So if we had to do anything else, then no, we haven’t done that This reply was modified 8 years, 9 months ago by hm456 .
No worries, juts go to your /wp-admin dashboard, navigate to Plugins from the admin sidebar menu, check version of each of the installed plugins.
Thanks for the reply. I’ve checked we have WooCommerce 3.1.2 but no ‘Woo Floating Minicart 3.1.1’ Is this a separate plugin that we need for woocommerce to work? (we ideally only want the essential plugins as our site already really heavy)
Sh Shanker can you please tell where to make changes so that the issue can be resolved. Thank you This reply was modified 8 years, 9 months ago by komalnaqvi .
If you are using “WooCommerce 3.1.1” and above along with “Woo Floating Minicart 3.1.1”, login your file server, go to “/wp-content/plugins/woo-floating-minicart/includes/awfm-functions.php”, then replace all of the codes under “awfm_woocommerce_fragments_compatibilty_function” function with add_filter('woocommerce_add_to_cart_fragments', array( $awfm, 'woo_floating_minicart_add_to_cart_fragment')); OR If you are using “WooCommerce 3.1.1” and above along with older version “Woo Floating Minicart”, means less than “3.1.1”, login your file server, go to “/wp-content/plugins/woo-floating-minicart/includes/awfm-frontend.php”, then find add_filter('add_to_cart_fragments', array( $awfm, 'woo_floating_minicart_add_to_cart_fragment')); and replace with add_filter('woocommerce_add_to_cart_fragments', array( $awfm, 'woo_floating_minicart_add_to_cart_fragment'));
I am using WooCommerce 3.0.8 and Woo Floating Minicart 3.1.1.
Please update to latest version “Woo Floating Minicart 3.1.2.1”. That should solve the issues.
Updated Woo Floating Minicart to version 3.1.2.1. Still facing the issue
Please follow the instructions. 1) Go to your plugins admin panel 2) Search Woo Floating Minicart 3) Deactivate the plugin 4) Check your recent error log, Might be after adding some product on cart, If the issues is goes away, there’s some problem with version comparison function approach. In that case, you should have to do following update. a) Login your file server, b) Go to “/wp-content/plugins/woo-floating-minicart/includes/awfm-functions.php” c) Then replace all of the codes inside “awfm_woocommerce_fragments_compatibilty_function” function with add_filter('woocommerce_add_to_cart_fragments', array( $awfm, 'woo_floating_minicart_add_to_cart_fragment')); d) Save and upload the file in same directory. Otherwise, the errors are firing by other entities.
The “add_to_cart_fragments” hook uses out of date data structures and function is deprecated since version 3.1.2. Replace with woocommerce_add_to_cart_fragments. this error is show and add to cart is very slow reply please
php version is 5.6 and woocommerce version 3.1.2 website name mtrado.com
I could not found “Woo Floating Minicart” as an active plugins. Would you please first confirm if the issue is from the mentioned plugin or not?
Bump I have this issue too!
We’ve updated the plugins in order to make compatible with latest WooCommerce depreciated function. Would you please check download latest version of the plugin and verify? If you are still getting that kind of problem, we’ve now controlled the version checking function with "awfm_woocommerce_fragments_compatibilty" action hook. From which, you can extend by yourself to overcome the issues.
Hey I have version 2.6.0 it looks like that version was updated 4 months ago? I do not know how to carry out the instructions you have said. Are you intending to fix this bug? Or are you able to provide more detailed instructions as to how I can stop this? My error logs are going out of control with this bug and it is filling up my server quickly. Please advise. thank you very much This reply was modified 8 years, 9 months ago by kombilife .
Sorry for your inconvenience, If you haven’t changed any files from the version 2.6.0, you just need to update the plugin with latest release 3.1.1 Does this make sense?
Oh you are talking about WC. Yes I already have v 3.1.1 installed and this error is happening. Incidentally they just updated to 3.1.2 (but I’m sure you will get that notification too) So what I am saying is I have the latest version of your plugin and v 3.1.1 WC but am still seeing these logs and have to go in and clear it everyday. Please advise, thanks
Nopes, I’m talking about “Woo Floating Minicart 3.1.1”, have you updated to this version?
Yep sorry my bad – thanks very much for your help.
For confirmation only: Are you still getting compatibility issues (after updating Woo Floating Minicart 3.1.1 plugin) on error log?
Mate, so sorry for the confusion, it wasn’t your plugin that was causing the error at all. Sorry about this, thanks for your time.
The “add_to_cart_fragments” hook uses out of date data structures and function is deprecated since version 3.0.8. Replace with woocommerce_add_to_cart_fragments. Hi! I am getting the above error. Because of this my cart becomes empty when I add something and change the page to add another thing to the cart.It’s happening for the first add when I come back to the previous page it’s showing the items in the cart but as I mentioned not showing when page is changed for the first time. Please help to solve this issue. Thankyou This reply was modified 8 years, 9 months ago by komalnaqvi .
I have Version 3.1.1 of this plugin but still issue is there. This reply was modified 8 years, 9 months ago by komalnaqvi .
Would it be possible to share your WP credentials privately in my email, BUT NOT PUBLICLY HERE, so that I could debug the issue?
Hi, I have the same error: The “add_to_cart_fragments” hook uses out of date data structures and function is deprecated since version 3.1.2. Replace with woocommerce_add_to_cart_fragments. It’s been crashing my site 🙁 I’ve got the latest update: Version 3.1.2 | By Automattic Can anyone help?
Yes, WooCommerce deprecated its previous “add_to_cart_fragments” hook in their latest release. To overcome the issues, we’ve also added some functions to check WooCommerce version first and fire appropriate minicart hook on Woo Floating Minicart 3.1.1. Just to confirm, have you updated “Woo Floating Minicart 3.1.1” too? This reply was modified 8 years, 9 months ago by Shiva Shanker Bhatta .
I’m sorry if this is really obvious, but I don’t know how to check this..? I installed the latest Woocommerce update. So if we had to do anything else, then no, we haven’t done that This reply was modified 8 years, 9 months ago by hm456 .
No worries, juts go to your /wp-admin dashboard, navigate to Plugins from the admin sidebar menu, check version of each of the installed plugins.
Thanks for the reply. I’ve checked we have WooCommerce 3.1.2 but no ‘Woo Floating Minicart 3.1.1’ Is this a separate plugin that we need for woocommerce to work? (we ideally only want the essential plugins as our site already really heavy)
Sh Shanker can you please tell where to make changes so that the issue can be resolved. Thank you This reply was modified 8 years, 9 months ago by komalnaqvi .
If you are using “WooCommerce 3.1.1” and above along with “Woo Floating Minicart 3.1.1”, login your file server, go to “/wp-content/plugins/woo-floating-minicart/includes/awfm-functions.php”, then replace all of the codes under “awfm_woocommerce_fragments_compatibilty_function” function with add_filter('woocommerce_add_to_cart_fragments', array( $awfm, 'woo_floating_minicart_add_to_cart_fragment')); OR If you are using “WooCommerce 3.1.1” and above along with older version “Woo Floating Minicart”, means less than “3.1.1”, login your file server, go to “/wp-content/plugins/woo-floating-minicart/includes/awfm-frontend.php”, then find add_filter('add_to_cart_fragments', array( $awfm, 'woo_floating_minicart_add_to_cart_fragment')); and replace with add_filter('woocommerce_add_to_cart_fragments', array( $awfm, 'woo_floating_minicart_add_to_cart_fragment'));
I am using WooCommerce 3.0.8 and Woo Floating Minicart 3.1.1.
Please update to latest version “Woo Floating Minicart 3.1.2.1”. That should solve the issues.
Updated Woo Floating Minicart to version 3.1.2.1. Still facing the issue
Please follow the instructions. 1) Go to your plugins admin panel 2) Search Woo Floating Minicart 3) Deactivate the plugin 4) Check your recent error log, Might be after adding some product on cart, If the issues is goes away, there’s some problem with version comparison function approach. In that case, you should have to do following update. a) Login your file server, b) Go to “/wp-content/plugins/woo-floating-minicart/includes/awfm-functions.php” c) Then replace all of the codes inside “awfm_woocommerce_fragments_compatibilty_function” function with add_filter('woocommerce_add_to_cart_fragments', array( $awfm, 'woo_floating_minicart_add_to_cart_fragment')); d) Save and upload the file in same directory. Otherwise, the errors are firing by other entities.
The “add_to_cart_fragments” hook uses out of date data structures and function is deprecated since version 3.1.2. Replace with woocommerce_add_to_cart_fragments. this error is show and add to cart is very slow reply please
php version is 5.6 and woocommerce version 3.1.2 website name mtrado.com
I could not found “Woo Floating Minicart” as an active plugins. Would you please first confirm if the issue is from the mentioned plugin or not?