Support » Plugin: WooCommerce » What is generating error “blah is deprecated since version 3.7!”

  • Resolved kosmicare

    (@kosmicare)


    I am regularly getting this error in my logs

    [26-Jan-2020 23:30:11 UTC] PHP Notice: get_used_coupons is deprecated since version 3.7! Use WC_Abstract_Order::get_coupon_codes instead. in /home/user/public_html/wp/wp-includes/functions.php on line 4648

    The indicated code line is:

    trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ), $function, $version, $replacement ) );

    This means i can’t actually figure out which plugin is causing the error.

    How would I go about troubleshooting this to find the true source of the error?

    I’m using the latest version of storefront and woocommerce.

    • This topic was modified 1 year, 8 months ago by kosmicare.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Ross V. a11n

    (@rossviviano)

    Automattic Happiness Engineer

    Hi there,

    How would I go about troubleshooting this to find the true source of the error?

    The best way to find out what plugin is causing the issue is by performing a conflict test.
    First, you’ll want to change the theme on your site to Storefront (vanilla Storefront with no child themes or template overrides), then test. If changing the theme doesn’t help, you’ll want to deactivate all plugins except for WooCommerce and take a look. If that fixes the problem, re-enable the other plugins one by one to see where the issue is coming from. If you don’t want to test on your live site, then create a staging site using a plugin called WP Staging.

    Best,

    Ross

    Plugin Support Ross V. a11n

    (@rossviviano)

    Automattic Happiness Engineer

    Hi again,

    We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions!

    Best,

    Ross

    Thread Starter kosmicare

    (@kosmicare)

    how would I report this as a bug? It doesn’t make sense to refer to the generic error catching code when trying to show the source of the real bug?

    I was able to find the true source of the error by downloading a free trial of a php project manager and doing a string search on all the code in my plugin folder.

    • This reply was modified 1 year, 8 months ago by kosmicare.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What is generating error “blah is deprecated since version 3.7!”’ is closed to new replies.