Title: in_array() expects parameter 2 to be array
Last modified: August 23, 2018

---

# in_array() expects parameter 2 to be array

 *  Resolved [lhabrant](https://wordpress.org/support/users/lhabrant/)
 * (@lhabrant)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-6/)
 * Hi,
 * I activated the debug.log in WordPress and I’m getting very often the following
   PHP warning:
    in_array() expects parameter 2 to be array, string given in /home/
   www/we-peps.fr/www/wp-content/plugins/yikes-inc-easy-mailchimp-extender/public/
   classes/checkbox-integrations.php on line 121
 * Can you fix it for the next release please ?
 * Regards.

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

 *  Plugin Contributor [yikesitskevin](https://wordpress.org/support/users/yikesitskevin/)
 * (@yikesitskevin)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-6/#post-10617284)
 * Hi [@lhabrant](https://wordpress.org/support/users/lhabrant/),
 * I think the first thing you should try is going to your checkbox integrations(
   Easy Forms -> Settings -> Integrations) and re-saving them. We made a change 
   to these a while ago and the data structure slightly changed.
 * Let me know if that fixes this.
 * Cheers,
    Kevin.
 *  Plugin Contributor [Tracy Levesque](https://wordpress.org/support/users/liljimmi/)
 * (@liljimmi)
 * 🏳️‍🌈 YIKES, Inc. Co-Owner
 * [7 years, 9 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-6/#post-10633035)
 * Hi [@lhabrant](https://wordpress.org/support/users/lhabrant/),
 * Please let us know if this fixed the errors.
 * Thank you,
    -Tracy
 *  Thread Starter [lhabrant](https://wordpress.org/support/users/lhabrant/)
 * (@lhabrant)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-6/#post-10636367)
 * It works !
    Thanks

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/yikes-inc-easy-mailchimp-extender_a1c7e5.
   svg)
 * [Easy Forms for Mailchimp](https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/)
 * [Active Topics](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [lhabrant](https://wordpress.org/support/users/lhabrant/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-6/#post-10636367)
 * Status: resolved