Ready to get started?Download WordPress


Capability Manager Enhanced
Capability Manager Enhanced throws errors when adding a site with MU 3.8 (2 posts)

  1. farmeunit
    Posted 7 months ago #

    I have it disabled for now, but I can send the errors if requested.

  2. davidosullivan
    Posted 1 month ago #

    Actually I think this is to do with your PHP version/setup. I think later versions of PHP throw an error when you try to do something like:-

    if ( in_array( $role_name, $main_pp_only ) ) {
    do something

    and the variable to be searched is not an array- which is what is happening on line 56 (roughly) when I get errors thrown.

    This is because the plugin looks to see if the paid version of the plugin is installed and if it is it defines two variables in includes > network.php which are $blog_pp_only and $main_pp_only. If you simply instantiate these variables as arrays at the start of the code on that page, the errors go away, so add:-

    $blog_pp_only = array();
    $main_pp_only = array();

    at line 14 in includes > network.php and that will solve the issue.

    Hopefully the developers will see this post and update the plugin accordingly...


You must log in to post.

About this Plugin

About this Topic


No tags yet.