My woocommerce shop has been running smoothly for 6 months and suddenly I’m suddenly getting a critical error.
I already tried deactivating Woocommerce and a bunch of other plugins, as well as switching themes, but nothing works. And of course made sure everything is updated. See error details below
Any help would be super appreciated!!
Error Details
=============
An error of type E\_ERROR was caused in line 19 of the file /home/fcfaedaf/[vrworld.cy/wp-content/plugins/woocommerce/includes/class-wc-api.php](http://vrworld.cy/wp-content/plugins/woocommerce/includes/class-wc-api.php). Error message: Uncaught Error: Class ‘WC\_Legacy\_API’ not found in /home/fcfaedaf/[vrworld.cy/wp-content/plugins/woocommerce/includes/class-wc-api.php:19](http://vrworld.cy/wp-content/plugins/woocommerce/includes/class-wc-api.php:19)
Stack trace:
#0 /home/fcfaedaf/[vrworld.cy/wp-content/plugins/woocommerce/includes/class-wc-autoloader.php(54)](http://vrworld.cy/wp-content/plugins/woocommerce/includes/class-wc-autoloader.php(54)): include\_once()
#1 /home/fcfaedaf/[vrworld.cy/wp-content/plugins/woocommerce/includes/class-wc-autoloader.php(98)](http://vrworld.cy/wp-content/plugins/woocommerce/includes/class-wc-autoloader.php(98)): WC\_Autoloader->load\_file(‘/home/fcfaedaf/…’)
#2 \[internal function\]: WC\_Autoloader->autoload(‘wc\_api’)
#3 \[internal function\]: spl\_autoload\_call(‘WC\_API’)
#4 /home/fcfaedaf/[vrworld.cy/wp-content/plugins/woocommerce/src/Internal/Utilities/LegacyRestApiStub.php(61)](http://vrworld.cy/wp-content/plugins/woocommerce/src/Internal/Utilities/LegacyRestApiStub.php(61)): class\_exists(‘WC\_API’)
#5 \[internal function\]: Automattic\\WooCommerce\\Internal\\Utilities\\LegacyRestApiStub::parse\_legacy\_rest\_api\_request(Object(WP))
#6 /home/fcfaedaf/[vrworld.cy/wp-content/plugins/woocommerce/src/Internal/Traits/AccessiblePrivateMethods.php(178)](http://vrworld.cy/wp-content/plugins/woocommerce/src/Internal/Traits/AccessiblePrivateMethods.php(178)): call\_user\_func\_array(Array, Array)
#7 /home/fcfaedaf/[vrworld.cy/wp-includes/class-wp-hook.php(324)](http://vrworld.cy/wp-includes/class-wp-hook.php(324)): Automattic\\WooCommerce\\Internal

[“Deactivate WooCommerce then rollback to version 8.9.3. Had two sites with the errors and now both sites are up and running.”](https://wordpress.org/support/topic/fatal-error-4703/)
If you have backups, you should restore the site to the point before Woo was updated.