PHP Error Logs Show WC Product data is deprecated

Hi I checked my PHP error logs and I keep getting this message over and over

The WC_Product::get_parent function is deprecated since version 3.0. Replace with WC_Product::get_parent_id.
The WC_Product::get_post_data function is deprecated since version 3.0. Replace with get_post.

I have no idea how to fix this, do you have any suggestions?

Thanks

Hello There,

Thanks for writing in! Pro 2.2.5 is now available in automatic updates! This release contains fixes for several issues so be sure to check out the changelog (https://theme.co/changelog/). Please do update to the latest version. After doing the updates, always remember to clear all caches when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

This should resolve your issue. Please let us know how it goes.

Hi Thanks but I did update and I cleared the caches and my error log keeps filling up with things having to do with missing woocommerce things and I have no idea what this means or what to do. If you could please check out this error log, it is located right on my dashboard of wordpress so you can see what it is saying ( I gave you the login details above).

Thanks so much!

Hi,

May I know where in the dashboard you are seeing the error?

I checked woocommerce logs and can see this.

But it seems to have been resolved already.

I can see you have two cache plugins, please make sure to clear cloudflare cache and nginx cache

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.