Home › Forums › Calendar Products › Events Calendar PRO › PHP Warning
- This topic has 7 replies, 3 voices, and was last updated 8 years ago by
timwakeling.
-
AuthorPosts
-
March 8, 2018 at 4:17 am #1473117
timwakeling
ParticipantHi
I’m getting the following error in my logs on a multisite that uses Events Calendar Pro. Seems you might need to add a line to the function to check that the argument is actually an array before passing it to foreach?? 🙂
PHP Warning: Invalid argument supplied for foreach() in /wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.php on line 1101
Tim
March 9, 2018 at 3:37 am #1474348Andras
KeymasterHi Tim,
Thanks for reaching out and reporting that.
So far I haven’t been able to replicate that message.
What version of the plugins are you using? Could you share your system information with us?
Are the plugins network activated, or separately on the site?
What action are you taking when that message appears?
Please share with us any more detail you might find important as that will help us track down the issue.
Thanks!
Andras
March 9, 2018 at 4:38 am #1474404timwakeling
ParticipantHi – thanks for getting back to me.
In answer to your questions:
I am using Events Calendar Pro v4.4.23 and The Events Calendar v4.6.11.1. I see a new version of each has come out yesterday but we do updates for this client on fixed days so I can’t update until next week.
The plugin is network activated (there are about 250 sites on the network).
We aren’t taking any action when the message appears, and as far as I know it doesn’t cause a problem on the site front end; it just clutters up the log by appearing repeatedly in there and getting in the way of seeing other log entries. I would say it’s a minor annoyance rather than a serious problem and I am tempted just to add an is_array() check to your function to get rid of it, as detailed investigation of the cause might be time consuming. 🙂
Tim
March 9, 2018 at 4:39 am #1474405timwakeling
ParticipantThis reply is private.
March 9, 2018 at 5:14 am #1474450Hans-Gerd
ParticipantHi Tim,
we have the same issue – may be interesting for you:Best regards,
Hans-GerdMarch 12, 2018 at 4:12 am #1476280Andras
KeymasterThanks for chiming in here Hans-Gerd!
@Tim, is this something that might be happening with you?
this may happen if metadata has been deleted from an event. The way this can happen is if you trash/restore, or copy an event. Do you know if any of those things have been done?
Let me know, and we can dig further.
Cheers,
AndrasApril 3, 2018 at 9:35 am #1495437Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘PHP Warning’ is closed to new replies.
