Title: Warning: array_keys() expects parameter 1 to be array
Last modified: August 22, 2016

---

# Warning: array_keys() expects parameter 1 to be array

 *  [Doug](https://wordpress.org/support/users/nicoblog/)
 * (@nicoblog)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/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:
    [http://pastebin.com/0MxtWCfM](http://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)

[←](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array/?output_format=md)
[1](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array/?output_format=md)
2

 *  Thread Starter [Doug](https://wordpress.org/support/users/nicoblog/)
 * (@nicoblog)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array/page/2/#post-5314184)
 * 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)

[←](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array/?output_format=md)
[1](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array/?output_format=md)
2

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 6 participants
 * Last reply from: [Doug](https://wordpress.org/support/users/nicoblog/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array/page/2/#post-5314184)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
