Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling unused WooCommerce plugins causes critical error (fixed on production) #55

Open
gusaus opened this issue Mar 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@gusaus
Copy link
Contributor

gusaus commented Mar 19, 2023

I noticed during testing that we were getting a critical error on the cart page -
Cart - Angel City Jazz 2023-03-19 12-56-33

Thinking this must have something to do with the switch to Stripe for donations (via the Newspack plugin), I searched in the WooCommerce logs for errors related to Newspack or WooCommerce and found this error -

CRITICAL Uncaught Error: Class "WC_Name_Your_Price_Helpers" not found in /nas/content/live/acjdev/wp-content/plugins/newspack-plugin/includes/class-donations.php:243

..and a quick google search brought up a similar issue in the Newspack plugin repo - Automattic/newspack-plugin#1392

That made me think the is a new related error where WooCommerce Name Your Price is still required (even if we're not using in the current donation flow).

And when I added and re-enable these plugins, that error went away.

This is a Newspack bug and we need to file an issue https://github.com/Automattic/newspack-plugin/issues

In the meantime, I've re-enabled the Woo plugins on the live site and everything seems to be working on https://angelcityjazz.com/

@angelcityjazz @tonyzeoli Would be great if you could also check these pages (when logged in) on your end and followup if you come across any glaring problems.
https://angelcityjazz.com/my-account/
https://angelcityjazz.com/cart/

@gusaus gusaus added the bug Something isn't working label Mar 19, 2023
@gusaus
Copy link
Contributor Author

gusaus commented Mar 21, 2023

Ended up filing this issue in the Newspack plugin repo - Automattic/newspack-plugin#2361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant