• In some (but not all) of my subsites I get a warning in the user list section:-

    Warning: array_keys() expects parameter 1 to be array, boolean given in /home/sitename/public_html/wp-admin/includes/class-wp-users-list-table.php on line 196

    In that file the code on line 196 is:-

    $editable_roles = array_keys( get_editable_roles() );

    Deactivated and un-installed all plugins and changed to default theme. Problem remains.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bossthemes

    (@bossthemes)

    Sorry, just wanted to add something:-

    On the subsites where I have this issue, the user role dropdowns are missing as well, wheres on the ones without that warning I get the drop down with “subscriber, editor, administrator” etc still showing fine.

    Not sure what has caused the issue in only some of the sites, I thought it might be theme related but changing the theme does not fix it.

    Thanks.

    Thread Starter bossthemes

    (@bossthemes)

    For those interested I have isolated the problem.

    Not all subsites were doing it. This related to the ones where I had the issue. Just for ease of instruction we’ll assume you’ve kept your database prefix ‘wp’ (which you should never do!):-

    Each subsite has its own numbered tables relating to the blog ID.

    In the database the table find:- wp_##_options (## being the ID of your problem site)

    Then look for wp_##_user_roles. In the problem sites this was missing. Copied the user roles table from another and changed the number to the correct blog ID.

    Just need to find out what caused this to be missing, whether it’s a bug with multisite or due to a plugin that was active at the time of the site creation.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What plugins are you using? ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘User Role problem in some subdomain sites’ is closed to new replies.