Support » Plugin: The Events Calendar » Warning: in_array() expects parameter 2 to be array …

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Rob La Gatta


    Hi Ingo. Thanks for the report here; this is an odd issue and not one I’m seeing on my end. Are you saying you get this whenever you click into a category from an individual event? If so, mind posting a link to your site so I can check it out in action?

    Thanks in advance!


    yes it is so.

    Here my Calendar event: “”

    and then klick on “Kategorie: Beobachtungsabende”

    Here the link: “”

    … or other event …


    sorry my english is not so good 🙁

    Plugin Author Rob La Gatta


    Ah, no problem about the English! Thanks for confirming – I understand now.

    Try enabling a pretty permalinks structure, something like /%postname%/, and retest on the frontend (you may need to clear your cache). That should clear this up for you…but please let me know if not.

    ok, i set the permalink structur “/%year%/%monthnum%/%day%/%postname%/”.
    Then i cleared all caches and tested with all categories.
    But the Error is not cleared … 🙁

    Just got a warning: in_array error also. I get this when I try to view in “Calendar” or “Event List” view on my website.

    Warning: in_array() []: Wrong datatype for second argument in /wp-includes/post-template.php on line 1039

    Plugin version 2.0.10 was working fine but 2.0.11 is not. Also I updated to WordPress 3.5.1 and it’s still the same.

    Tried to update permalink structure and still the same. Ideas?

    Hello laguilar79,

    ok, you mean the plugin bersion 2.0.10 with WP 3.5 works correct?

    hm … i will check the compatiblity of my other plugins in my wordpress and then i will update to 3.5.1.

    i will write in the next days ….

    Yes, the plugin 2.0.10 works fine with WP 3.5 and 3.5.1. When I upgraded to 2.0.11 it broke.

    Plugin Author Rob La Gatta


    Guys: this is a really weird issue, and not one I’ve been able to recreate. That said: I just talked with the entire support crew about this, and all of us have seen some variation on it reported since the release of 2.0.11.

    I’ve got the devs looking into this now – it seems we may have introduced some problematic code in 2.0.11, which explains why it wasn’t occurring for some of you in 2.0.10. It might make sense to downgrade in the interim, which I apologize for, but know that we’re working to patch it so this shouldn’t be an issue for long. Once I hear back regardless, I will pass an update your way.

    Thanks for your patience and support so far. If you need anything in the interim, don’t hesitate to contact me (pro a/ and we’ll do our best to assist.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Warning: in_array() expects parameter 2 to be array …’ is closed to new replies.