Title: Warning: in_array() expects parameter 2 to be array,
Last modified: May 16, 2019

---

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

 *  [priceaction](https://wordpress.org/support/users/priceaction/)
 * (@priceaction)
 * [7 years ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-14/)
 * Hi
 * I m getting this message on my Page, wold you know how to fix it?
 * thx a lot
 * Warning: in_array() expects parameter 2 to be array, string given in /home4/ab10109/
   public_html/wp-content/plugins/pe-recent-posts/pe-recent-posts.php on line 483
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-in_array-expects-parameter-2-to-be-array-14%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [DJ-Extensions.com](https://wordpress.org/support/users/pixelemu/)
 * (@pixelemu)
 * [7 years ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-14/#post-11538363)
 * Hi
 * Thank you for contact.
    You have probably “debug” mode enabled so You see these
   notices.
 * The latest version of PE Recent Posts has a new feature – possibility to choose
   source categories of posts instead of only one category.
    This feature required
   changing the simple variable to an array. That’s why you see this notice. Please
   edit this widget, choose desired categories and click “Save”. Hope it helps.
 * Please let me know if you have any further questions.
 * Best Regards
    ML
 *  Thread Starter [priceaction](https://wordpress.org/support/users/priceaction/)
 * (@priceaction)
 * [7 years ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-14/#post-11539100)
 * Thx a lot

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

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

 * ![](https://ps.w.org/pe-recent-posts/assets/icon-128x128.png?rev=1220719)
 * [PE Recent Posts](https://wordpress.org/plugins/pe-recent-posts/)
 * [Support Threads](https://wordpress.org/support/plugin/pe-recent-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/pe-recent-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pe-recent-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pe-recent-posts/reviews/)

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