• Resolved sdbox

    (@sdbox)


    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>');
    • This topic was modified 8 years, 10 months ago by sdbox.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matt Pramschufer

    (@mattpramschufer)

    Thanks for the code snippet. What version of WP and WC are you running? I can not reproduce this issue. I think this came up once before if you are running Multi Site?

    Thread Starter sdbox

    (@sdbox)

    I am running the WP 4.8. Yes my instance is running in multi site mode.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Missing Woocomerce plugin’ is closed to new replies.