Breadcrumb & Title Error

Home Forums Calendar Products Community Events Breadcrumb & Title Error

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #63844
    irenegeo123
    Participant

    Hi, there i have just purchased your Community Events plugin and i’ve noticed that in the community section of the page i get the following warnings.

    Warning: in_array() expects parameter 2 to be array, string given in /home/wehugorg/public_html/wp-content/themes/wehug/template-default.php on line 38

    Warning: in_array() expects parameter 2 to be array, string given in /home/wehugorg/public_html/wp-content/themes/wehug/template-default.php on line 39

    The code in the indicated lines is this:
    ID); endif; ?>

    I know it it a theme conflict issue, but i need to fix this. Please help!

    Thank you!

    #63845
    irenegeo123
    Participant

    Sorry sth went wrong while pasting the code, the code in the indicated lines is this:

    ID); endif; ?>

    #63846
    irenegeo123
    Participant

    hm.. i can’t paste the code..

    #63848
    Casey
    Participant

    Irene – sorry to hear you’re having these issues. Can you give me a URL to look at where I could see this error? Thanks!

    #63849
    irenegeo123
    Participant

    Hi Casey, yes this is the URL:
    http://www.wehug.org/events/community/add

    Thanks!

    #63855
    Casey
    Participant

    Irene,
    Could you paste the contents of your template-default.php file to something like pastebin, so I could take a closer look?

    #63870
    irenegeo123
    Participant

    Casey, check this link for the code: http://pastebin.com/1GeSbXu7

    Thank you

    #63880
    Casey
    Participant

    Irene – I think these errors are happening because the $other_options variable is possibly null. Try adding in an ‘is_empty’ conditional check before executing that ‘in_array’ check.

    Since this is definitely a theme-related issue, that’s really all the support I can offer. Good luck and let us know if you have any other questions!

    #63936
    irenegeo123
    Participant

    Great thank you Casey! I have added a condition and it fixed the problem!
    Cheers! 🙂

    #64125
    Casey
    Participant

    Thanks for confirming that this got you sorted. Unless you disagree, I’m going to mark this thread “Answered” and close it out.

    We really appreciate your support and please let us know if you need anything else in the future. If you find yourself with a few minutes and would be so kind as to give us a “Works” rating or a positive star voting on the WordPress.org repo (http://wordpress.org/extend/plugins/the-events-calendar/), or even a shoutout to your followers on Facebook or Twitter, it would mean a lot to us. Thanks again for using the plugin.

    #980567
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Breadcrumb & Title Error’ is closed to new replies.