Title: in_array() expects parameter 2 to be array
Last modified: September 1, 2016

---

# in_array() expects parameter 2 to be array

 *  [Protosynth](https://wordpress.org/support/users/protosynth/)
 * (@protosynth)
 * [10 years ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-5/)
 * `Warning: in_array() expects parameter 2 to be array, null given in /home/xXx/
   public_html/wp-content/plugins/wp-user-avatar/includes/class-wp-user-avatar-subscriber.
   php on line 97`
 * Not sure what this means exactly. Only shows up on a registered user’s Dashboard
   and not the Admin Dashboard.
 * Thoughts? Thanks.
 * [https://wordpress.org/plugins/wp-user-avatar/](https://wordpress.org/plugins/wp-user-avatar/)

The topic ‘in_array() expects parameter 2 to be array’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-avatar/assets/icon-256x256.png?rev=2532486)
 * [Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress](https://wordpress.org/plugins/wp-user-avatar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-avatar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-avatar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-avatar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-avatar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-avatar/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Protosynth](https://wordpress.org/support/users/protosynth/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-5/)
 * Status: not resolved