• favorite
    I was wondering what happened to my Woocommerce or something after I updated the plugin. Some deprecation error occurs. Kindly see attached image below. How can I solved this thing?

    • This topic was modified 7 years, 4 months ago by jwtaniza.

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • You’re using a plugin or theme that needs to be updated for the latest version of WooCommerce. You’ll have more luck tracking it down in the WooCommerce forum: https://www.ads-software.com/support/plugin/woocommerce

    Hello,
    Please go to wp-config.php file and set WP_DEBUG variable to false.
    define( 'WP_DEBUG', false );

    To get more help visit below link:
    https://codex.www.ads-software.com/Debugging_in_WordPress

    • This reply was modified 7 years, 4 months ago by dineshkashera.
    Thread Starter jwtaniza

    (@jwtaniza)

    Hi @dineshkashera, the error was being removed. But will the transactions be affected or anything?

    Hello,
    No @jwtaniza, Don’t worry everything will work fine on your site :).

    • This reply was modified 7 years, 4 months ago by dineshkashera.
    Thread Starter jwtaniza

    (@jwtaniza)

    I see. Thanks a lot mate. I used that now. (Y)

    If the problem has been resolved then market it as resolved :).

    Thread Starter jwtaniza

    (@jwtaniza)

    Thanks!

    Hang on, hang on. Plugins don’t throw deprecated notices for no reason. Dinesh has just showed you how to hide the errors from the public, but it is still something you need to address. Future versions of WooCommerce could change in such a way that will eventually break your site. Rather than waiting until it happens you should try to find out which plugin/theme is using the deprecated method and fix it, update it, or report to the author.

    Thread Starter jwtaniza

    (@jwtaniza)

    Yes @jacob Peattie. I agree with you. But I already updated the WordPress and Woocommerce to its latest version. How would I able to solve it?

    @jakept ditto.

    As Jacob mentioned, hiding an error does NOT fix it. Surely prepare for this by finding a solution now.

    Thread Starter jwtaniza

    (@jwtaniza)

    Kindly have a look at this link: https://i.stack.imgur.com/19GXm.png
    This is the error I received from it.

    @jwtaniza Your theme or a WooCommerce extension must have the issue but hasn’t got a fix yet. Find the issue by re-enabling debug and disabling plugins/switching theme until the error goes away. When it does, the last thing deactivated was probably responsible. When you know who it is contact the author with the error you’re receiving.

    To re-enable debug notices without the plugin seeing them, leave WP_DEBUG as false, but set WP_DEBUG_LOG to true:

    define( 'WP_DEBUG', false );
    define( 'WP_DEBUG_LOG', true );
    

    This will put the notices into debug.log in /wp-content/, so you can refer to that for the errors, rather than the front-end of your site.

    The good news is that it seems like the method was only deprecated in 3.2, a very very recent release, so you probably have quite a bit of time before you’ll have to really worry.

    Thread Starter jwtaniza

    (@jwtaniza)

    I know the problem is with using the function which is then define as deprecated but my main problem is I cannot located the exact location which uses those functions. Please do help.

    I just told you how. Deactivate plugins one by one until the error goes away. That’ll tell you the plugin or theme responsible. Unless you built said plugin or theme yourself it doesn’t matter where exactly the issue is, just take it to the author.

    I set DEBUG to FALSE, DEBUG_LOG to FALSE as well, but below error is still reflecting in logs section. I am using WPEngine WordPress Hosting.

    “The WC_Cart->fees function is deprecated since version 3.2. Replace with the fees API (WC_Cart::add_fee)…”

    I checked my theme files, all plugins and didn’t find the use of deprecated function. There are no file references showing in error log.

    I need solution, if I can override this function, or force disable error logs using wp-config or theme file, I do not want any core file updation.

    Thanks

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Woocommerce WC_Cart->fees and WC_Cart::get_checkout_url is deprecated’ is closed to new replies.