add_to_cart_fragments error in Wordpress Woocommerce

len
140 Posts
len posted this 24 January 2018

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.
9 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 24 January 2018

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
140 Posts
len posted this 25 January 2018

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 25 January 2018

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
140 Posts
len posted this 26 January 2018

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 28 January 2018

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
140 Posts
len posted this 30 January 2018

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 31 January 2018

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
len
140 Posts
len posted this 06 March 2018

Nettie

As Themler is loading, the URL that shows in the address bar is:
themler_846147007
Is this the version number?
When I access a theme, the help about is v.432, I thought that is the version number.

Just updated the theme to v.441
The add_cart message is now gone, instead I am getting:
[06-Mar-2018 20:41:49 UTC] The WC_Cart::get_remove_url function is deprecated since version 3.3. Replace with wc_get_cart_remove_url.

LenW

Nettie As Themler is loading, the URL that shows in the address bar is: themler_846147007 Is this the version number? When I access a theme, the help about is v.432, I thought that is the version number. Just updated the theme to v.441 The add_cart message is now gone, instead I am getting: [06-Mar-2018 20:41:49 UTC] The WC_Cart::get_remove_url function is deprecated since version 3.3. Replace with wc_get_cart_remove_url. LenW
Support Team
Support Team posted this 07 March 2018

Hi,

Our developers have fixed this issue in the current internal Themler version.
The permanent fix will be available with the next Themler update.
As a temporary workaround you may disable warnings using define('WP_DEBUG', false); in wp-config.php file.

Please let us know if you have any further questions.

Thanks,
Ivan

Hi, Our developers have fixed this issue in the current internal Themler version. The permanent fix will be available with the next Themler update. As a temporary workaround you may disable warnings using `define('WP_DEBUG', false);` in **wp-config.php** file. Please let us know if you have any further questions. Thanks, Ivan
You must log in or register to leave comments