Title: Warning: in_array() [ FUNCTION.IN-ARRAY ]: Wrong datatype for second argument
Last modified: August 20, 2016

---

# Warning: in_array() [ FUNCTION.IN-ARRAY ]: Wrong datatype for second argument

 *  [alvarix](https://wordpress.org/support/users/alvarix/)
 * (@alvarix)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-second-argument-1/)
 * v2.0.11 pro
    When I google the error I see it is widespread. Upcoming events 
   pages display the error.
 * Something about arrays seems to have changed in 3.5
 * waiting to hear from tribe support
 * [http://wordpress.org/extend/plugins/the-events-calendar/](http://wordpress.org/extend/plugins/the-events-calendar/)

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

 *  [Rob La Gatta](https://wordpress.org/support/users/roblagatta/)
 * (@roblagatta)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-second-argument-1/#post-3402779)
 * Hey alvarix, I’d assume you got this sorted by going through the [pro@tri.be](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-second-argument-1/pro@tri.be?output_format=md)
   account and using your PRO license on the tri.be forum, right? Just wanted to
   check since I recall seeing some discussion between you and Leah on this. Let
   me know if I’m wrong there.
 *  Thread Starter [alvarix](https://wordpress.org/support/users/alvarix/)
 * (@alvarix)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-second-argument-1/#post-3402794)
 * Hi Rob,
 * The closest I got to a fix was to manually suppress errors on the page with php

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

The topic ‘Warning: in_array() [ FUNCTION.IN-ARRAY ]: Wrong datatype for second 
argument’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [alvarix](https://wordpress.org/support/users/alvarix/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/warning-in_array-functionin-array-wrong-datatype-for-second-argument-1/#post-3402794)
 * Status: not resolved