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

---

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

 *  Resolved [nathair](https://wordpress.org/support/users/nathair/)
 * (@nathair)
 * [13 years ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-null-given/)
 * Having a category problem when I want to see activity categories displayed as
   admin.
    Warning: in_array() expects parameter 2 to be array, null given in … /
   wp-includes/post-template.php on line 1039
 * So for the moment not using the categories
    Am using responsive theme template
   and only events calendar and Ecwid Shopping Cart on a multisite [network] to 
   test it.
 * [http://wordpress.org/extend/plugins/the-events-calendar/](http://wordpress.org/extend/plugins/the-events-calendar/)

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

 *  [jonahcoyote](https://wordpress.org/support/users/jonahcoyote/)
 * (@jonahcoyote)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-null-given/#post-3787017)
 * Hi nathair,
 * Sorry to hear about the issue here. Have you tried deactivating all other plugins
   to see if it’s a conflict with another plugin? Or, try reverting to the default
   WordPress theme to see if it’s a conflict with the theme… I can also offer for
   you to try our 3.0 beta to see if this is fixed there. Please send an email to
   pro [at] tri [dot] be if you’re interested in this.
 * Thanks,
    Jonah
 *  [joost de keijzer](https://wordpress.org/support/users/joostdekeijzer/)
 * (@joostdekeijzer)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-null-given/#post-3787024)
 * Hi,
 * I’m having the same issue with the 2012 theme.
 * What I did in the Calendar Settings (translating back from Dutch here):
    – default
   view: Event list – Activity template: default page template
 * Next, go to the events page and browse back until you have a page without events.
 * The error seems to be in `/wp-includes/post-template.php` `Walker_Page::start_el()`
   where `$_current_page` is expected to exist and have `ancestors`.
 *  Thread Starter [nathair](https://wordpress.org/support/users/nathair/)
 * (@nathair)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-null-given/#post-3787027)
 * I am temporarily working on another site at the moment, can look at this problem
   again beginning of July. thanks
 *  [jonahcoyote](https://wordpress.org/support/users/jonahcoyote/)
 * (@jonahcoyote)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-null-given/#post-3787031)
 * Hi guys,
 * We’re not doing any more work on the 2.0.x branch and this issue should be fixed
   in 3.0. If you’d like to give the 3.0 beta a try, please email pro [at] tri [
   dot] be attn. to me and referencing this thread.
 * Thanks,
    Jonah
 *  [joost de keijzer](https://wordpress.org/support/users/joostdekeijzer/)
 * (@joostdekeijzer)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-null-given/#post-3787042)
 * Ok.
 * Solved my issue in the current version by making sure there is one event in the
   past.
 *  [Rob La Gatta](https://wordpress.org/support/users/roblagatta/)
 * (@roblagatta)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-null-given/#post-3787051)
 * Excellent to hear you’re set, joost! Thanks for confirming as much.
 * nathair: if you decide to revisit this and find the issue persists with even 
   the newest release, please post a new thread and we’ll do what we can to get 
   it sorted. Marking this one Resolved for now.
 *  Thread Starter [nathair](https://wordpress.org/support/users/nathair/)
 * (@nathair)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-null-given/#post-3787054)
 * hi roblagatta, I am back and set up a test site. Saw there was an update two 
   days ago but had problems updating. Will try installing the update tomorrow and
   start testing this week.
    thanks
 *  [Barry Hughes](https://wordpress.org/support/users/websitebakery/)
 * (@websitebakery)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-null-given/#post-3787058)
 * Great, just let us know if you need further help.

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

The topic ‘in_array() expects parameter 2 to be array null given’ 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/)

## Tags

 * [parameter 2](https://wordpress.org/support/topic-tag/parameter-2/)

 * 8 replies
 * 5 participants
 * Last reply from: [Barry Hughes](https://wordpress.org/support/users/websitebakery/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/in_array-expects-parameter-2-to-be-array-null-given/#post-3787058)
 * Status: resolved