Warning: array_keys() expects parameter 1 to be array
-
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/0MxtWCfMI suspect there’s something wrong on that table but i have no idea what it is.
Thanks for any help.
- The topic ‘Warning: array_keys() expects parameter 1 to be array’ is closed to new replies.