• I just discovered this error on my multisite, the site runs fine. I disn’t notice any problem at all but i’d prefer not hafing this kind of errors on the site.

    When i go to
    Network Admin Dashboard
    Sites -> All Sites
    Click edit on any site of the network
    And then click users tab i get this warning on top of the page:
    “Warning: array_keys() expects parameter 1 to be array, boolean given in /home/nicoorg/public_html/wp-admin/includes/class-wp-users-list-table.php on line 307”

    This is the line 307:
    $editable_roles = array_keys( get_editable_roles() );

    And this is the content of the wp_2_user_riles table:
    https://pastebin.com/0MxtWCfM

    I suspect there’s something wrong on that table but i have no idea what it is.

    Thanks for any help.

Viewing 16 replies (of 16 total)
  • Thread Starter Doug

    (@nicoblog)

    If i create a new site the new site also comes with the error.
    I think i’ll let it be i won’t reinstall everything because of this, it doesn’t seem to have any effect on the sites.

Viewing 16 replies (of 16 total)
  • The topic ‘Warning: array_keys() expects parameter 1 to be array’ is closed to new replies.