add_to_cart_fragments error in Wordpress Woocommerce

len
131 Posts
len posted this 4 weeks ago

I am seeing the following in the Wordpress error_log file:

The "add_to_cart_fragments" hook uses out of date data structures and function is deprecated since version 3.2.6. Replace with woocommerce_add_to_cart_fragments.

I am sure this is due to the Themler theme.
Is there a fix for this please?

Thanks
LenW

I am seeing the following in the Wordpress error_log file: The "add_to_cart_fragments" hook uses out of date data structures and function is deprecated since version 3.2.6. Replace with woocommerce_add_to_cart_fragments. I am sure this is due to the Themler theme. Is there a fix for this please? Thanks LenW
Vote to pay developers attention to this features or issue.
7 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 4 weeks ago

Hello Len,

Does it cause any issues with the theme or website functionality?

Sincerely,
Nettie,
BillionDigital Team

Hello Len, Does it cause any issues with the theme or website functionality? Sincerely, Nettie, BillionDigital Team
len
131 Posts
len posted this 4 weeks ago

If there are errors being written to the error log that must be slowing the website down, it cannot be good.
LenW

If there are errors being written to the error log that must be slowing the website down, it cannot be good. LenW
Support Team
Support Team posted this 4 weeks ago

Hi Len,

Does the same error occur when you activate a default WP theme (e.g. 2017)?

Thanks,
Ivan

Hi Len, Does the same error occur when you activate a default WP theme (e.g. 2017)? Thanks, Ivan
len
131 Posts
len posted this 4 weeks ago

Ivan
I don't want to activate a default theme as this happens on an established woocommerce site, and it will mess up widgets areas.
This is on the Woo support thread on worpress.org:
https://wordpress.org/support/topic/add_to_cart_fragments-hook-out-of-date/
It confirms that the active theme is the issue.
LenW

Ivan I don't want to activate a default theme as this happens on an established woocommerce site, and it will mess up widgets areas. This is on the Woo support thread on worpress.org: https://wordpress.org/support/topic/add_to_cart_fragments-hook-out-of-date/ It confirms that the active theme is the issue. LenW
Support Team
Support Team posted this 3 weeks ago

Hi,

Exactly what Themler version are you using? The version can be seen on the address bar when you start Themler.
Our developers already fixed similar compatibility issues some time ago. The most recent update should include this fix too.

Thank you,
Olivia

Hi, Exactly what Themler version are you using? The version can be seen on the address bar when you start Themler. Our developers already fixed similar compatibility issues some time ago. The most recent update should include this fix too. Thank you, Olivia
len
131 Posts
len posted this 3 weeks ago

Olivia
The Themler desktop version with the Woocommerce theme loaded is v.435, and its not offering any update.
In Wordpress, the theme version says: Version: 1.0.526.
I have just regenerated aa new zip export from the desktop Themler, and it was at this version before so has not changed.
I have cleared out the W3TC cache.
I have deleted the wordpress error_log.
Wordpress then creates a new file with:
[30-Jan-2018 15:35:52 UTC] The The "add_to_cart_fragments" hook uses out of date data structures and function is deprecated since version 3.2.6. Replace with woocommerce_add_to_cart_fragments.
I have now worked out that clicking the add to basket button on a product detail page causes a new line in the error_log to be written.
LenW

LenW

Olivia The Themler desktop version with the Woocommerce theme loaded is v.435, and its not offering any update. In Wordpress, the theme version says: Version: 1.0.526. I have just regenerated aa new zip export from the desktop Themler, and it was at this version before so has not changed. I have cleared out the W3TC cache. I have deleted the wordpress error_log. Wordpress then creates a new file with: [30-Jan-2018 15:35:52 UTC] The The "add_to_cart_fragments" hook uses out of date data structures and function is deprecated since version 3.2.6. Replace with woocommerce_add_to_cart_fragments. I have now worked out that clicking the add to basket button on a product detail page causes a new line in the error_log to be written. LenW LenW
Support Team
Support Team posted this 3 weeks ago

Hi,

Please try the most recent Beta update. Beta updates can be enabled under your Profile >> "Get Beta updates".

Thank you,
Olivia

Hi, Please try the most recent Beta update. Beta updates can be enabled under your Profile >> "Get Beta updates". Thank you, Olivia
You must log in or register to leave comments