WordPress.org

Ready to get started?Download WordPress

Forums

Multisite Plugin Manager
[resolved] Auto-Activate not working (14 posts)

  1. RavanH
    Member
    Posted 3 years ago #

    Hi,

    Trying Multisite Plugin Manager on a WP3.1 Multi-site install, I notice the plugin I have set to Auto-Activate (as test) is not activated on a freshly created site in the network :(

    The plugin I am trying to activate on blog creation is:

    1. Contact Form 7

    Plugins that have been Network Activated are:

    1. Extended Super Admins
    2. Multisite Plugin Manager
    3. Networks for WordPress
    4. Simple Section Navigation Widget
    5. WordPress.com Custom CSS
    6. WordPress Hashcash
    7. WordPress MU Domain Mapping
    8. WPMS Mobile Edition
    9. XML Sitemap Feed

    Thans for any thoughts :)

  2. Philip
    Member
    Posted 3 years ago #

    Hiya!

    Are you able to manually activate that plugin on the new site?

    Phil

  3. RavanH
    Member
    Posted 3 years ago #

    Hi Phil, thanks for your support :)

    Yes, I can (did) activate the plugin manually. Let me know if you want me to test anything...

  4. Aaron
    Member
    Plugin Author

    Posted 3 years ago #

    Are there any errors in your log?

  5. Aaron
    Member
    Plugin Author

    Posted 3 years ago #

    If not, try installing the main plugin file in /mu-plugins/ folder (create it) and see if that makes a difference.

  6. RavanH
    Member
    Posted 3 years ago #

    I've moved the plugin to /mu-plugins/ but still no dice... and nothing in the error log :(

  7. Aaron
    Member
    Plugin Author

    Posted 3 years ago #

    I'll have to look into it when I get some time.

  8. imoullet
    Member
    Posted 3 years ago #

    Any news concerning auto activate?

    I run WP 3.12. and the latest release of multisite plugin manager and have the same problem for auto-activate not working.

    thanks for your help..

  9. MAVIC
    Member
    Posted 2 years ago #

    I'm using WP 3.2.1 and I'm having the same issue as well.

  10. imoullet
    Member
    Posted 2 years ago #

    I could finally find the workaround..

    Just comment the if statement line 313 in plugin-manager.php as follows ($supporter_control_auto seems to be undefined)

    //activate on new blog
    function new_blog($blog_id) {
    require_once( ABSPATH.'wp-admin/includes/plugin.php' );

    $auto_activate = (array)get_site_option('pm_auto_activate_list');
    // if (count($supporter_control_auto)) {
    switch_to_blog($blog_id);
    activate_plugins($auto_activate, '', false); //silently activate any plugins
    restore_current_blog();
    // }
    }

    Hope that helps..

  11. RavanH
    Member
    Posted 2 years ago #

    Excellent! Thanks for finding and sharing, imoullet :)

    Hope it makes it into trunk for the next release...

  12. Aaron
    Member
    Plugin Author

    Posted 2 years ago #

    Hey guys, fixed in 3.1, thanks!

  13. MAVIC
    Member
    Posted 2 years ago #

    Thanks imoullet, I implemented that earlier today and it works.

    Aaron, does the fix consist of more than just commenting out or deleting that chunk of code? Thanks.

  14. Aaron
    Member
    Plugin Author

    Posted 2 years ago #

    Yes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic