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.

Hi @fabiofava,

By withdrawing the post, I believe you already have resolved the issue. If the issue still existed, you can let us know.

Thanks.

Hey @tristup!

Actually not, I was posting that WPML can’t erase some strings related to BuddyPress, wich are created by Cornerstone in some way. Those text_domains are undeletable for some reason. Do you think you folks can help in some way to disable completely those BuddyPress text_domains from my sites? I won’t ever install BuddyPress on them.

Thank you very much, cheers!

Hey @fabiofava,

Right now, there is no way to disable the text_domains. I’d like to ask though if those text_domains you’re mentioning cause fatal error in your site or they cause malfunction in your site? If so, please share the error messages that you see.

Please just note that if you’re seeign Notices or Warnings only, please disable PHP error messages as suggest previously by Ruenel.

Hey @christian

No error, it just makes the site slightly slower. You can close the ticket as it’s not an error.

Thank you very much for all infos, best regards!

You are most welcome, @fabiofava

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