PHP Error: Cornestone tries to access 'single_product' after WC Removed

Hey Folks,

I’ve removed WooCommerce from my website and now Cornerstone is constantly trying to call single_product wich it cannot find. I have this error both locally and on Dev (Live):

Local Development with LocalWP (Frontend):

Warning : No rule matching function for single_product in /Users/fabio/Sites/flynet/app/public/wp-content/themes/pro/cornerstone/includes/classes/Services/RuleMatching.php on line 54

Live Development on my website (Hosting Logs):

Would be possible for me to do something to eliminate this error by “telling” Cornerstone that WooCommerce is gone for good? I hope you folks can help me on this direction.

Thank you so much in advance, best regards!

Hello @fabiofava,

Thanks for writing in! Did you assigned a header, footer or content to single products only? Based on your screenshot, this is a PHP Notices. This may not affect the performance and the features of the site. If you want to get rid of these PHP Notices, you can turn OFF the WP Debug mode.

Best Regards.

Hello @ruenel,

Thank you for your information. I’ve deleted the definitions for every header, then re-added them to new headers (duplicated from the original ones). It seems that it’s better, but i’ve seen some other errors related to single_product.

I’ll keep watching my Logs for a couple days to make sure they’re gone.

Thank you so much again, best regards!

You are most welcome, @fabiofava.

Hello @ruenel,

I’ve found this error on my WP Debug and Hosting Logs. I couldn’t find that text domain on string translation. I’ve deleted al strings to re-add them when the site is ready. This is the error:

Notice : Function _load_textdomain_just_in_time was called incorrectly . Translation loading for the ub domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /Users/fabio/Sites/flynet/app/public/wp-includes/functions.php on line 6121

I also found out that I cannot delete some strings about BuddyPress (wich I’ve never used and don’t intend to use). Is there a way to be able to delete those?

I’ll keep looking forward from you on these questions, thank you so much.

CHeers!