Title: Warning: in_array() expects parameter 2 to be array
Last modified: January 21, 2017

---

# Warning: in_array() expects parameter 2 to be array

 *  [agidulyan](https://wordpress.org/support/users/agidulyan/)
 * (@agidulyan)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-11/)
 * Hi I have some problem with your plugin: there is an error notification just 
   after installation:
 * Warning: in_array() expects parameter 2 to be array, boolean given in …/plugins/
   anspress-question-answer/includes/hooks.php on line 556
 * and 564
 * there are 6 such error notifications totally.
    any advises?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Rahul Aryan](https://wordpress.org/support/users/nerdaryan/)
 * (@nerdaryan)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-11/#post-8683198)
 * Hello,
 * Please try our latest beta release of 4.0.
    It can be found on our site [https://anspress.io/questions/](https://anspress.io/questions/)
 * Thanks

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/anspress-question-answer/assets/icon-256x256.png?rev=2432843)
 * [AnsPress - Question and answer](https://wordpress.org/plugins/anspress-question-answer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/anspress-question-answer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/anspress-question-answer/)
 * [Active Topics](https://wordpress.org/support/plugin/anspress-question-answer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/anspress-question-answer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/anspress-question-answer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rahul Aryan](https://wordpress.org/support/users/nerdaryan/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-11/#post-8683198)
 * Status: not resolved