Uncaught Error: Class ‘WooCommerce’ not found in ..woocommerce.php on line 47
-
Hi!
After updating woocommerce 4.9.0 to 5.2.2 via my composer.json file I receive the following error message when trying to acces my site (locally):
`( ! ) Fatal error: Uncaught Error: Class ‘WooCommerce’ not found in /srv/www/…/current/web/app/plugins/woocommerce/woocommerce.php on line 47
( ! ) Error: Class ‘WooCommerce’ not found in /srv/www/…/current/web/app/plugins/woocommerce/woocommerce.php on line 47(The website is build in the roots.io stack (sage 9), working with wordpress version 5.7.1)
I already tried deleting woocommerce and reinstalling it a couple of times.
I also get a series of warnings like this one in my terminal after doing the composer update command:
Class Automattic\WooCommerce\Admin\Notes\WC_Admin_Note located in ./web/app/plugins/woocommerce-admin/src/Notes/DeprecatedNotes.php does not comply with psr-4 autoloading standard. Skipping.For now I keep using the 4.9.0. version but I would like to keep it up to date ??
Thanks for the help!
- The topic ‘Uncaught Error: Class ‘WooCommerce’ not found in ..woocommerce.php on line 47’ is closed to new replies.