Existing WooCommerce products are all gone and unable to install WooCommerce afresh.
The message showing while trying to install WooCommerce afresh:
Plugin could not be activated because it triggered a fatal error.
Warning: include_once(/home/splendid/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php): failed to open stream: No such file or directory in /home/splendid/public_html/wp-content/plugins/woocommerce/woocommerce.php on line 24
Warning: include_once(): Failed opening ‘/home/splendid/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php’ for inclusion (include_path=’.:/opt/alt/php72/usr/share/pear’) in /home/splendid/public_html/wp-content/plugins/woocommerce/woocommerce.php on line 24
Fatal error: Uncaught Error: Class ‘WooCommerce’ not found in /home/splendid/public_html/wp-content/plugins/woocommerce/woocommerce.php:34 Stack trace: #0 /home/splendid/public_html/wp-content/plugins/woocommerce/woocommerce.php(38): WC() #1 /home/splendid/public_html/wp-admin/includes/plugin.php(2050): include(‘/home/splendid/…’) #2 /home/splendid/public_html/wp-admin/plugins.php(175): plugin_sandbox_scrape(‘woocommerce/woo…’) #3 {main} thrown in /home/splendid/public_html/wp-content/plugins/woocommerce/woocommerce.php on line 34
Existing WooCommerce products are all gone and unable to install WooCommerce afresh.
The message showing while trying to install WooCommerce afresh:
Plugin could not be activated because it triggered a fatal error.
Share Improve this question edited May 4, 2019 at 15:48 norman.lol 3,2313 gold badges29 silver badges35 bronze badges asked May 4, 2019 at 15:09 Splendid Digital SolutionsSplendid Digital Solutions 1015 bronze badges 2 |Warning: include_once(/home/splendid/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php): failed to open stream: No such file or directory in /home/splendid/public_html/wp-content/plugins/woocommerce/woocommerce.php on line 24
Warning: include_once(): Failed opening ‘/home/splendid/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php’ for inclusion (include_path=’.:/opt/alt/php72/usr/share/pear’) in /home/splendid/public_html/wp-content/plugins/woocommerce/woocommerce.php on line 24
Fatal error: Uncaught Error: Class ‘WooCommerce’ not found in /home/splendid/public_html/wp-content/plugins/woocommerce/woocommerce.php:34 Stack trace: #0 /home/splendid/public_html/wp-content/plugins/woocommerce/woocommerce.php(38): WC() #1 /home/splendid/public_html/wp-admin/includes/plugin.php(2050): include(‘/home/splendid/…’) #2 /home/splendid/public_html/wp-admin/plugins.php(175): plugin_sandbox_scrape(‘woocommerce/woo…’) #3 {main} thrown in /home/splendid/public_html/wp-content/plugins/woocommerce/woocommerce.php on line 34
3 Answers
Reset to default 1It sounds like the plugin installation was borked for some reason. Best bet is to use FTP to transfer all plugin files from your local computer to the proper plugin folder. Check the plugin docs for help with a manual re-install so you don't overwrite a settings file, for instance.
Plugin help is best done through the plugin support area, though....not here.
Yesterday, upgraded to GoDaddy Business Hosting Plan. To my pleasant surprise today, I could activate the WooCommerce plugin. Not sure the mystery behind my earlier removal of WooCommerce, then trying to install without success.
It seems like it's a type of plugin conflict. Try these solutions:
- Update the plugin: Make sure your plugin is not outdated
- Install the plugin manually.
- Try to contact your plugin forum If you still getting this error. Try this video:- https://www.youtube/watch?v=jQijXeUKsWk&t=22s
/home/splendid/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php
was not found. – nmr Commented May 4, 2019 at 15:29