Title: Warning: in_array() expects parameter 2 to be array, null given
Last modified: April 12, 2018

---

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

 *  Resolved [eddiebouncer](https://wordpress.org/support/users/eddiebouncer/)
 * (@eddiebouncer)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-null-given-4/)
 * Hi there,
 * I just did a test-booking on our site, which works fine. But the custom message
   gives the following error in the email a booker receives:
 * Warning: in_array() expects parameter 2 to be array, null given in /…/public_html/
   wp-content/plugins/woo-custom-emails-per-product/includes/class-woo-custom-emails-
   output.php on line 78
 * It actually shows up 4 times throughout the received email. Do you have an idea
   what causes this?
 * Regards, Edwin
 * 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-null-given-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [eddiebouncer](https://wordpress.org/support/users/eddiebouncer/)
 * (@eddiebouncer)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-null-given-4/#post-10172980)
 * Or am i behind and would this update fix it?:
 * 2.1.4 – (Apr 11, 2018)
    Fix: Fixed issue where error messages were displaying
   in emails under certain circumstances.
 * Peace, Ed’
 *  Plugin Author [alexmustin](https://wordpress.org/support/users/alexmustin/)
 * (@alexmustin)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-null-given-4/#post-10175041)
 * Hi [@eddiebouncer](https://wordpress.org/support/users/eddiebouncer/),
 * Please try the latest version 2.1.4 — this should fix the issue.
 * Thanks!
 *  Thread Starter [eddiebouncer](https://wordpress.org/support/users/eddiebouncer/)
 * (@eddiebouncer)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-null-given-4/#post-10175386)
 * Yeah my bad,
 * i was too fast.excuses-le-mot. Thanks for the fast reply and updates.
 * Peace, Ed’

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/woo-custom-emails-per-product_75b5c3.
   svg)
 * [WC Custom Emails Per Product](https://wordpress.org/plugins/woo-custom-emails-per-product/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-custom-emails-per-product/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-custom-emails-per-product/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-custom-emails-per-product/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-custom-emails-per-product/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-custom-emails-per-product/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 3 replies
 * 2 participants
 * Last reply from: [eddiebouncer](https://wordpress.org/support/users/eddiebouncer/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-null-given-4/#post-10175386)
 * Status: resolved