• Resolved dav74

    (@dav74)


    Hello,

    We are receiving thousands of error logs from a deprecated WC function. See error message below. When will you be releasing a fix?

    The wc_get_log_file_path function is deprecated since version 8.6.0.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey there, @dav74! Thanks for contacting us. I’m happy to help you.

    From the error message you shared, it seems something is calling a deprecated function.

    Is this the whole error message or is there more to it so we can search for clues regarding what is calling the function?

    Where are you seeing the error message? Can you share a screenshot so we can take a look? I recommend using https://snipboard.io. You can share the direct link to the image as a response to this topic.

    Furthermore, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
    Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter dav74

    (@dav74)

    Hi there. Here is the full error message:

    PHP Deprecated: Die Funktion wc_get_log_file_path ist seit Version 8.6.0 veraltet und es ist keine Alternative verfügbar. in /var/www/vhosts/xxxxxxxx.xxxxxxx.xxxxxxxx.net/httpdocs/xxxxxxxxxx/wp-includes/functions.php on line 6031

    I am seeing this error on many sites running WC. Therefore can you please check this your end asap. I would prefer not to copy system status report into a public chat area.

    Hello @dav74,

    I understand you’re experiencing an issue with the deprecated function ‘wc_get_log_file_path’ across multiple sites running WooCommerce.

    This function was indeed deprecated in version 8.6.0 and the error message you’re seeing is a warning that this function is no longer in use.

    Please note that deprecated doesn’t mean it will cause issues with your site, it’s more of a warning for developers to update their code. You can try updating your WooCommerce version to the latest known version to see if the issue still persists.

    If you continue to see these errors or if you encounter any issues, please feel free to reach out to us.

    We’re here to help

    Thread Starter dav74

    (@dav74)

    Hello. We are running the latest version – 8.7.0.

    Why is it not possible for WC devs to fix this and stop calling a deprecated function? It is creating thousands of lines of code in the log files, which should not be there.

    Hey, @dav74!

    We are running the latest version – 8.7.0.

    Thanks for clarifying!

    Why is it not possible for WC devs to fix this and stop calling a deprecated function? It is creating thousands of lines of code in the log files, which should not be there.

    Since we are not seeing these errors on our end, we need more information from your website to figure out what is calling the deprecated function.

    Since you don’t feel comfortable sharing the SSR here, are you able to run a conflict test on your website to check if another plugin or the theme is causing it?

    To test, you’ll first want to change the theme on your site to Storefront, then check to see if the issue is still present. If that resolves the issue, you’ll want to get in touch with your theme’s developer and see if they have an update or fix for you.

    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 (gradually), checking after each, to see where the issue is coming from.

    — Be sure you have a good backup in place of your full site and database. You can ask your host for backup functionality or you can consider using a service like Jetpack. If something goes wrong, you will be able to restore it.

    — Also, you can consider using a plugin like Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it is helpful to disable plugins without affecting your current site visitors.

    — It is important to consider as well a staging functionality in case you would not like to touch your production site (you can ask your host if they offer this service), or you can use WP Staging for quickly spinning up a new test site.

    You can find more about this in this guide.

    Please let us know about your findings.

    Have a wonderful day!

    Thread Starter dav74

    (@dav74)

    Hi there,

    Thanks for your reply. I actually dug deeper on this one and did a trace-back on the error. Although I was sure it was WC, it is actually coming from a plugin from Yith (PayPal Express).

    So thank you for your replies and apologies for the confusion.

    Plugin Support omarfpg a11n

    (@omarfpg)

    Hi @dav74,

    Thank you for the heads-up. You can reach out to the Yith plugin developers for more details about this.

    Alternatively, if you’d be open to considering other options for PayPal, you can also consider the WooCommerce PayPal Payments, which we developed and support.

    Thanks!
    -OP

    Thread Starter dav74

    (@dav74)

    Thank you. Yith has fixed the issue.
    Unfortunately the WC plugin only has 2 stars so seems too risky and problematic to use for payments.

    Hello @dav74,

    Thank you. Yith has fixed the issue.

    Glad to hear it.

    Unfortunately the WC plugin only has 2 stars so seems too risky and problematic to use for payments.

    I understand your concerns regarding the rating of the plugin. However, please note that the star rating doesn’t necessarily reflect the reliability or functionality of the plugin. Apart from that, the plugin also receives constant updates and support from the forum.

    I would encourage you to try the plugin and assess its suitability for your needs.

    Our team is always here to assist with any issues or questions you may have.

    Cheers!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘debug log clogged with WC error message’ is closed to new replies.