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

---

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

 *  Resolved [spooky650](https://wordpress.org/support/users/spooky650/)
 * (@spooky650)
 * [12 years ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-3/)
 * I have installed the plugin and it seems to work fine. However I am seeing the
   following warning message after inserting the shortcode into a post? Please advise
   of a fix.
 * Warning: in_array() expects parameter 2 to be array, string given in /public_html/
   cms/wp-content/plugins/multi-rating/multi-rating.php on line 197
 * [https://wordpress.org/plugins/multi-rating/](https://wordpress.org/plugins/multi-rating/)

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

 *  Plugin Author [dpowney](https://wordpress.org/support/users/dpowney/)
 * (@dpowney)
 * [12 years ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-3/#post-4953575)
 * I’m currently working on a fix. As a workaround, go to the Settings page and 
   click save for the general settings. It should work after this.
 * Let me know.
    Thanks, Daniel
 *  Plugin Author [dpowney](https://wordpress.org/support/users/dpowney/)
 * (@dpowney)
 * [12 years ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-3/#post-4953659)
 * This has now been fixed
 *  Plugin Author [dpowney](https://wordpress.org/support/users/dpowney/)
 * (@dpowney)
 * [12 years ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-3/#post-4953660)
 * Marked as fixed
 *  Thread Starter [spooky650](https://wordpress.org/support/users/spooky650/)
 * (@spooky650)
 * [12 years ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-3/#post-4953679)
 * Thanks for the reply, but that hasn’t fixed it??
 *  Plugin Author [dpowney](https://wordpress.org/support/users/dpowney/)
 * (@dpowney)
 * [12 years ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-3/#post-4953685)
 * Can you resend warning msg. I want to check line number. Thanks.
 *  Thread Starter [spooky650](https://wordpress.org/support/users/spooky650/)
 * (@spooky650)
 * [12 years ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-3/#post-4953686)
 * Warning: in_array() expects parameter 2 to be array, string given in /public_html/
   cms/wp-content/plugins/multi-rating/multi-rating.php on line 197
 *  Plugin Author [dpowney](https://wordpress.org/support/users/dpowney/)
 * (@dpowney)
 * [12 years ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-3/#post-4953688)
 * Are you sure it now says line 197? Because the in_array function the warning 
   is complaining about is now on line 199. Please check you have updated the plugin
   to the latest version. Thanks,

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/multi-rating_d6dfe6.svg)
 * [Multi Rating](https://wordpress.org/plugins/multi-rating/)
 * [Support Threads](https://wordpress.org/support/plugin/multi-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/multi-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multi-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multi-rating/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [dpowney](https://wordpress.org/support/users/dpowney/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-3/#post-4953688)
 * Status: resolved