• Resolved ryanmctwist

    (@ryanmctwist)


    Hi,

    I am getting this error in the shopping cart on my Woocommerce site ever since the last update. Does anyone know how to update the php file to get this message to go away?

    Deprecated: WC_Cart->tax_display_cart was called with an argument that is deprecated since version 4.4! Use WC_Cart->get_tax_price_display_mode() instead. in /home/fastlans/public_html/wp-includes/functions.php on line 5057

    Thank you

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • jas

    (@jaskaranpreetsingh)

    The WC_Cart->tax_display_cart argument is deprecated since version 4.4. Use WC_Cart->get_tax_price_display_mode() instead.

    Same for us !

    Same here. No support?

    I have the same problem. Does anyone know what to do?

    Same! Still no solution??

    The problem is that you have an outdated Woocommerce Subscriptions plugin and you need to buy the new one. They give you 1 year of support and updates, and my plugin was bought in 2018 and is therefore “deprecated”. Sorry that you have to fork over some cash, but I was just having the same issue, bought the new plugin, and now it works. It’s a miracle!

    I don’t have Woo Subscriptions and I’ve had this same error “Deprecated: WC_Cart->tax_display_cart was called with an argument that is deprecated since version 4.4! Use WC_Cart->get_tax_price_display_mode() instead. in /var/www/wp-includes/functions.php on line 5057”

    Any other suggestions?

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @piercerides, @ryanmctwist @gallicka @jaskaranpreetsingh @philraymond @joanerni. Those types of “Deprecated” warnings generally indicate there is code in a theme or plugin that has not been updated. Please update your theme, as well as anything else listed as having an update available in your Plugins list.

    If you are still seeing the error after that, please check under WooCommerce > Status > Logs, and see if there are any entries in the dropdown for “fatal-errors”. If there are, please copy them and paste them in your response here.

    I am also getting the same error

    In the WooCommerce > Status > getting this error
    register_rest_route was called incorrectly. The REST API route definition for wc/v1/brands is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /var/www/wp-includes/functions.php on line 5225

    Please help me…

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @ishaikh546. This error message looks like it is related to Perfect Brands for WooCommerce. You can find a related discussion here in their forum.

    @drwpcom I have updated all my plugins and theme and am still receiving the error. I found at least one fatal error log from 10/15 (today is 10/21). I don’t think it has to do with that though. Looks like a scheduled action error.

    Would you please let me know if there’s anything else to check?

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @ryanmctwist. Are you facing this issue? @piercerides, I think a good next step is to do some conflict testing on the site. We have a guide to help you here – https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    If anyone, aside from the original poster, still has an issue, please open a new thread.

    – Joey

    I am also getting this message – was a solution found?

    @kowarler The suggestion from @drwpcom that

    “Those types of “Deprecated” warnings generally indicate there is code in a theme or plugin that has not been updated. Please update your theme, as well as anything else listed as having an update available in your Plugins list.”

    …is sound. In my case, because my theme already had been updated, I identified where the call was used and replaced it with the suggestion in the error message. I reported this a as bug to the theme developer.

    You can test if it’s your theme my testing with another to see if the problem persists or not. Or just replace the call.

    • This reply was modified 4 years, 3 months ago by magdamunro.

    Bonjour les maj sont réalisées, les tests avec autres thèmes et desinstallation des plugins mais le message reste toujours. Une idée ?

    • This reply was modified 4 years, 3 months ago by crevette1406.
Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Deprecated: WC_Cart->tax_display_cart’ is closed to new replies.