Missing Woocomerce plugin
-
The installation is failing because it doesn’t detect the Woocommerce plugin. Please implement the bellow fix to woocommerce-payperpost.php .
diff --git a/wp-content/plugins/woocommerce-pay-per-post/woocommerce-payperpost.php b/wp-content/plugins/woocommerce-pay-per-post/woocommerce-payperpost.php index a705ed7..7f7e938 100644 --- a/wp-content/plugins/woocommerce-pay-per-post/woocommerce-payperpost.php +++ b/wp-content/plugins/woocommerce-pay-per-post/woocommerce-payperpost.php @@ -33,7 +33,7 @@ } public static function woocommerce_dependencies() { - if ( ! in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) { + if ( ! is_plugin_active( 'woocommerce/woocommerce.php')) { $plugin = plugin_basename(__FILE__); deactivate_plugins($plugin); wp_die('<h1>Ooops</h1><p>This Plugin requires <strong><a href="http://www.woothemes.com/woocommerce/" target="_blank">WooCommerce</a></strong>. This plugin has been deactivated! Please activate <strong>WooCommerce</strong> and try again.<br /><br />Back to the WordPress <a href="' . get_admin_url(null, 'plugins.php') . '">Plugins page</a>.</p>');
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Missing Woocomerce plugin’ is closed to new replies.