-
AuthorPosts
-
October 19, 2017 at 7:29 pm #866421
Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead. in /home/mygirlfriday805/public_html/wp-includes/functions.php on line 3831
I know this will be fixed with new update, but will this appear on the screen for my customers?
October 20, 2017 at 11:19 am #866671Hey MyGirlFriday805,
That is correct, if you want to fix it before that then please open this file: /config-woocommerce/config.php, and change this line on line 1775:
$link = wc_get_cart_url();
To this:
$link = function_exists( 'wc_get_cart_url' ) ? wc_get_cart_url() : $woocommerce->cart->get_cart_url();
Best regards,
RikardOctober 23, 2017 at 1:29 am #867384thanks @rikard. I found in line 1802 1803 just added pound sign to not remove line to test and added new one. see below.Funny though this only happened on one site with enfold, others are working fine with latest enfold and wc.
`$link = function_exists( ‘wc_get_cart_url’ ) ? wc_get_cart_url() : $woocommerce->cart->get_cart_url();
# $link = $woocommerce->cart->get_cart_url();- This reply was modified 7 years ago by olauno.
October 23, 2017 at 4:23 am #867426Hi,
Glad that Rikard helped you. Let us know if you need more assistance :)
Best regards,
NikkoOctober 30, 2017 at 8:37 am #870377Hi there,
I am having this same error noticed but we aren’t able to use either fix given so far.
Can someone please have a look at my client’s website? – *info in private section*I have hidden the error notice by adding the following to my child theme’s functions:
ini_set('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_DISPLAY', false);
October 30, 2017 at 1:56 pm #870448Hi Briana,
I am not seeing the error, can you please describe more when it happens?
Best regards,
VictoriaOctober 31, 2017 at 12:18 am #870671HI Victoria,
I hid the error using this as I posted previous:
—->I have hidden the error notice by adding the following to my child theme’s functions:
ini_set('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_DISPLAY', false);
I don’t want any customers to see it as it is an online store so hid the error.
November 1, 2017 at 9:52 am #871116Hi Briana,
Updating to the latest version of the theme (4.2) should remove those messages: http://kriesi.at/documentation/enfold/updating-your-theme-files/
Best regards,
RikardNovember 2, 2017 at 12:56 am #871466Oh! I didn’t realise I was behind on my theme updates – sometimes enfold doesn’t show an alert/notification, but I should have checked that first.
I will update the theme and get back to you.November 2, 2017 at 2:21 am #871472Yup – fixed!
Thanks everyone :)November 2, 2017 at 3:44 am #871494Hi,
Great! I’m glad you were able to get this resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_u’ is closed to new replies.