Home › Forums › Calendar Products › Community Events › Breadcrumb & Title Error
- This topic has 10 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
August 30, 2013 at 10:03 am #63844
irenegeo123
ParticipantHi, 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!
August 30, 2013 at 10:04 am #63845irenegeo123
ParticipantSorry sth went wrong while pasting the code, the code in the indicated lines is this:
ID); endif; ?>
August 30, 2013 at 10:05 am #63846irenegeo123
Participanthm.. i can’t paste the code..
August 30, 2013 at 10:12 am #63848Casey
ParticipantIrene – sorry to hear you’re having these issues. Can you give me a URL to look at where I could see this error? Thanks!
August 30, 2013 at 10:17 am #63849irenegeo123
ParticipantHi Casey, yes this is the URL:
http://www.wehug.org/events/community/addThanks!
August 30, 2013 at 10:46 am #63855Casey
ParticipantIrene,
Could you paste the contents of your template-default.php file to something like pastebin, so I could take a closer look?August 30, 2013 at 11:47 am #63870irenegeo123
ParticipantCasey, check this link for the code: http://pastebin.com/1GeSbXu7
Thank you
August 30, 2013 at 12:19 pm #63880Casey
ParticipantIrene – 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!
August 31, 2013 at 2:23 am #63936irenegeo123
ParticipantGreat thank you Casey! I have added a condition and it fixed the problem!
Cheers! 🙂September 2, 2013 at 3:16 pm #64125Casey
ParticipantThanks 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.
July 7, 2015 at 6:27 am #980567Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Breadcrumb & Title Error’ is closed to new replies.
