Cannot activate plugin
-
Hello,
WooCommerce cannot be activated after all plugins are disabled except:
- WP-Bakery
- advanced-cache.php in Drop-in tab
- 6 plugins in the Must-Use tab (from WP Engine, the hosting company).
?
The site uses WooCommerce for quite some time, but suddenly have this problem.
Please guide me to the next troubleshooting steps (if no direct solution is available).
This is one of the errors:
PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /nas/content/live/uniondocs/wp-includes/functions.php:5890\nStack trace:\n#0 /nas/content/live/uniondocs/wp-includes/functions.php(5890): in_array('mod_rewrite', NULL, true)\n#1 /nas/content/live/uniondocs/wp-admin/includes/misc.php(17): apache_mod_loaded('mod_rewrite', true)\n#2 /nas/content/live/uniondocs/wp-admin/includes/misc.php(281): got_mod_rewrite()\n#3 /nas/content/live/uniondocs/wp-includes/class-wp-rewrite.php(1874): save_mod_rewrite_rules()\n#4 /nas/content/live/uniondocs/wp-includes/rewrite.php(281): WP_Rewrite->flush_rules(true)\n#5 /nas/content/live/uniondocs/wp-content/plugins/woocommerce/includes/class-wc-post-types.php(649): flush_rewrite_rules()\n#6 /nas/content/live/uniondocs/wp-includes/class-wp-hook.php(307): WC_Post_Types::flush_rewrite_rules('')\n#7 /nas/content/live/uniondocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)\n#8 /nas/content/live/uniondocs/wp-includes/plugin.php(476): WP_Hook->do_action(Array)\n#9 /nas/content/live/uniondocs/wp-content/plugins/woocommerce/includes/class-wc-install.php(385): do_action('woocommerce_flu...')\n#10 /nas/content/live/uniondocs/wp-includes/class-wp-hook.php(307): WC_Install::install('')\n#11 /nas/content/live/uniondocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)\n#12 /nas/content/live/uniondocs/wp-includes/plugin.php(476): WP_Hook->do_action(Array)\n#13 /nas/content/live/uniondocs/wp-admin/plugins.php(194): do_action('activate_woocom...')\n#14 {main}\n thrown in /nas/content/live/uniondocs/wp-includes/functions.php on line 5890, referer: https://uniondocs.org/wp-admin/plugins.php?plugin=woocommerce%2Fwoocommerce.php
Thank you
The page I need help with: [log in to see the link]
- The topic ‘Cannot activate plugin’ is closed to new replies.