PHP Fatal error: Uncaught Error: Class ‘WC_Shipping_Method’ not found


I have got a critical error from this plugin since a few days, first occurrence happened on 14-Sep-2022 23:40:14 UTC and I cannot access the admin anymore because of that error.

[14-Sep-2022 23:40:14 UTC] PHP Fatal error: Uncaught Error: Class ‘WC_Shipping_Method’ not found in […]/wp-content/plugins/flexible-shipping/classes/table-rate/flexible-shipping-settings.php:21
Stack trace:
#0 […]/wp-content/plugins/flexible-shipping/vendor/composer/ClassLoader.php(444): include()
#1 […]/wp-content/plugins/flexible-shipping/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile(‘/homepages/43/d…’)
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass(‘WPDesk_Flexible…’)
#3 […]/wp-content/plugins/flexible-shipping/classes/class-flexible-shipping-plugin.php(817): spl_autoload_call(‘WPDesk_Flexible…’)
#4 […]/wp-includes/class-wp-hook.php(309): Flexible_Shipping_Plugin->links_filter(Array)
#5 […]/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array)
#6 […]/wp-content/plugins/flexible-shipping/classes/table-rate/flexible-shipping-settings.php on line 21

I checked my updates logs, there was no update around that time that could have caused that error, also no plugin was installed around the same time, so I’m a bit stuck honestly.

I’m on PHP 7.4, updated to 8.0 to check if the problem persisted (and it persisted indeed). WordPress version is 6.0.2, the update was done on August 31st.



This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here