Fatal error when WooCommerce is unavailable
-
Hi, I noticed that when (for whatever reason) WooCommerce is not available, both admin and front-end become inaccessible. The following fatal error appears in debug.log
[27-Aug-2024 00:06:38 UTC] PHP Fatal error: Uncaught Error: Class "WC_Shipping_Method" not found in /home/XXX/public_html/wp-content/plugins/flexible-shipping/classes/table-rate/flexible-shipping-settings.php:21
This happened to me after a failed automatic update that somehow completely removed WooCommerce. It took me a while to discover that it was the missing (but otherwise marked as activate) WooCommerce plugin that was the root cause of the fatal error ??
Might be a good idea to check for WC core class before loading any Flexible Shipping modules?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.