最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

woocommerce offtopic - Plugin could not be activated because it triggered a fatal error

programmeradmin7浏览0评论

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.

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

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
  • Is the file there and uncorrupted? Can you manually extract the plugin into the right place, via shell or FTP? – Rup Commented May 4, 2019 at 15:28
  • File /home/splendid/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php was not found. – nmr Commented May 4, 2019 at 15:29
Add a comment  | 

3 Answers 3

Reset to default 1

It 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:

  1. Update the plugin: Make sure your plugin is not outdated
  2. Install the plugin manually.
  3. Try to contact your plugin forum If you still getting this error. Try this video:- https://www.youtube/watch?v=jQijXeUKsWk&t=22s
发布评论

评论列表(0)

  1. 暂无评论