Title: Warning: in_array() expects parameter
Last modified: August 20, 2016

---

# Warning: in_array() expects parameter

 *  Resolved [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter/)
 * When I go into my Media library I get the following at the top of the page:
 * Warning: in_array() expects parameter 2 to be array, null given in /home/mysite/
   public_html/wp-includes/query.php on line 2399
 * It lists the same message about 9 times.
 * Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter/#post-2209060)
 * You have a faulty plugin. Try installing the Hotfix plugin:
    [http://wordpress.org/extend/plugins/hotfix/](http://wordpress.org/extend/plugins/hotfix/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter/#post-2209071)
 * Thanks for replying so quickly. I’m a little confused as to how this plugin works
   and what actually it does. I’ve installed it but where is it??
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter/#post-2209206)
 * It fixes a set of specific issues in WP 3.0 – 3.1.x You don’t have to do anything
   with it. Just activate it.
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter/#post-2209227)
 * Great. Thanks for this and it appears to have fixed my original problem.
 *  [vehicros](https://wordpress.org/support/users/vehicros/)
 * (@vehicros)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter/#post-2209437)
 * Wow, I had this same problem, on one site, but not the other, So I just downloaded
   HotFix.
    No luck, didnt solve my problem, so I think Ill try updating wordpress,
   even though I do not care for the admin menu bar at the top of the page.
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter/#post-2209440)
 * [@vehicros](https://wordpress.org/support/users/vehicros/) – you can remove the
   admin bar at the top of the page by going into your user settings.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Warning: in_array() expects parameter’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [greencode](https://wordpress.org/support/users/greencode/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter/#post-2209440)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
