Hello,
Please help! My customers are getting an error message all of a sudden when checking out of my online store (woocommerce). It says the following and I'm not sure what to do...
Notice: woocommerce_get_page_id is deprecated since version 3.0! Use wc_get_page_id instead. in /hsphere/local/home/moolpc/coastimagewear.com.au/wp-includes/functions.php on line 3831
Thank you for any advice you may have.
Hi Tracey,
So sorry to hear you're having this issue with your WooCommerce store.
A quick Google search turns up several support topics from people who experienced the same issue after updating to WooCommerce 3.0. Here's one of them. Those support threads all appeared about the same time — about 3 months ago.
It appears the woocommerce_get_page_id is deprecated
message is safe to ignore, but should have been corrected in a future update to the plugin.
Fom that thread linked above, “If you’re seeing these messages on your public-facing pages, it’s a sign that your host has misconfigured your server’s error logging. Logged error messages should not be visible on production sites, so it would be worth asking them to disable these. They can either log to a file for you to review privately, or disable logging altogether if they offer a staging environment that you can test new updates in instead.”
This indicates that your best course of action may be to contact your web hosting provider and ask them to help you resolve this issue by diabling logged error messages.
But you might also search for this error on the WooCommerce support channel to see if there is a more recent fix: https://wordpress.org/support/plugin/woocommerce
If your web host is unable or unwilling to resolve this for you, then you could also reach out to one of the experts at Codeable, who can no doubt resolve this in short order, at a very low cost: https://wp101.com/help/
Hope this helps, and that you're able to get this resolved ASAP!