The MU forums have moved to WordPress.org

Plugman Needs An Update To Fix An Oversight (2 posts)

  1. marke1
    Member
    Posted 16 years ago #

    I don't know how to get in contact with the dev for Plugman. His Web site has no area for Plugman and to comment about Plugman over at the WPMU site where the code is hosted I have to create an account and I don't feel like doing that.

    Plugman doesn't call the WP actions that some plugins use to activate themselves, which in some cases breaks the plugins since they don't automagically create tables and other stuff as they should.

    So here's a fix that needs to go into plugman.php if anyone knows how to contact the dev:

    In the activate_plugin function, right before echoing "Done!" add this:


    do_action('activate_' . $plugin);

    And in the deactivate_plugin function add this:


    do_action('deactivate_' . $plugin);

    Thar she blows!!!

  2. demonicume
    Member
    Posted 16 years ago #

    this eliminates the errors, i was getting. but this also deactivates all other activated plugins

    this is the error we get now

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in line 293

    'Function added by SignpostMarv Martin
    */
    global $wpdb;
    $query = "select blog_id from {$wpdb->blogs}";
    $bloglist = $wpdb->get_results($query);
    foreach($bloglist as $row)
    {
    $plugins = get_blog_option($row->blog_id, "active_plugins");
    (line 293) if(in_array($file,$plugins))
    {
    return FALSE;
    }
    }
    return TRUE;
    }
    '

About this Topic

  • Started 16 years ago by marke1
  • Latest reply from demonicume