WooCommerce Store Critical Error

  • Unknown's avatar

    I have a WooCommerce webstore, and have products in the store with all of the variations disabled. Previously, the product page would be viewable with the variations disabled so that customers could sign up for in-stock notifications for out of stock products. However, now when the variations are disabled and you click on the product, instead of loading the product page, I get a ‘There has been a critical error on this website.’ message. I have not changed anything recently to cause this. Any ideas?

    WP.com: Yes
    Jetpack: Yes
    Correct account: Yes

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    I noticed after taking a closer look that the critical error on your site was caused by the WooCommerce Square plugin. If I temporarily deactivate this plugin, products display without issue, whereas when it’s active they do not seem to load for me.

    With this in mind I was curious to know more about how you’ve set up Square on your site. One thing I noticed when looking at your plugin settings is that you have checked the option “Hide synced products when not found in Square” is it possible that these products are no longer synced due to the changes you made on your site? This may cause products to not load as they should on your site.

    https://summersweetnativeplants.com/wp-admin/admin.php?page=wc-settings&tab=square

    You may want to double-check that you are not having any sync issues as outlined here in the troubleshooting guide for the WooCommerce Square plugin: https://woocommerce.com/document/woocommerce-square/troubleshooting/#section-2

    Hope that helps. Please let us know if you have any more questions.

  • Unknown's avatar

    After reading your comment, I went back and checked the website and it appears things are behaving differently than when I first posted. Originally, the products that had variations enabled would load, but those with all variations disabled triggered the critical error message. However, now those that have all variations disabled load just fine, but those with variations enabled just appear to be endlessly loading with the spinning loading screen. I have not made any changes between when I originally posted and now, nor have I made any changes that would effect syncing of products between WooCommerce and Square. However, I have noticed for quite some time (several months to a year) that automatic syncs work just fine, but when I try to do a manual sync, it takes a very long time and then times out and fails. I have not been able to determine the cause of this. I tried checking and unchecking the “Hide synced products when not found in Square” option, and it did not seem to change any webstore behavior or fix the issues at hand.

  • I’m able to confirm this issue by checking the product here: https://summersweetnativeplants.com/product/pine-straw-bale/

    If you disable the “digital wallet” option on this page do products load successfully? https://summersweetnativeplants.com/wp-admin/admin.php?page=wc-settings&tab=checkout&section=square_credit_card

    Thanks for confirming.

  • Unknown's avatar

    Hi, I just unchecked the “digital wallet” option, and the products load now. Is there a reason the digital wallet option would cause the product page loading to hang up like that?

  • Thanks for confirming. I’ve reported this to our team for a closer look since we’ve seen a few other reports of this from other merchants. We will update you as soon as we know more, thanks!

  • Unknown's avatar
  • Hi there, I see that the plugin devs were able to address this issue and I see that your site is currently using the v4.4 of the WooCommerce Square plugin. If you re-enable digital wallet you should have no issues.

    Thanks for your patience!

  • The topic ‘WooCommerce Store Critical Error’ is closed to new replies.