Home › Forums › Calendar Products › Events Calendar PRO › PHP Warning: Invalid argument supplied for foreach()
- This topic has 0 replies, 3 voices, and was last updated 6 years, 1 month ago by Hans-Gerd.
-
AuthorPosts
-
February 22, 2018 at 10:46 am #1461212Hans-GerdParticipant
Hi,
since 8.2.2018 we are getting the following message (via mail), which relating to “The Events Calendar Pro” plugin:
PHP Warning: Invalid argument supplied for foreach() in /home/www/wp/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence/Meta.phpSeem to be no issue showing recurrent events.
Best regards
Hans-GerdFebruary 22, 2018 at 10:48 am #1461216Hans-GerdParticipantThis reply is private.
February 23, 2018 at 2:51 pm #1462466BrendanKeymasterThis reply is private.
February 24, 2018 at 2:04 am #1462682Hans-GerdParticipantHi Brendan,
I’m using the current versions of all TEC-plugins.
Additional I have checked file meta.php – the file is precisely commensurate and has the same contents.But there seem to be no issues reffering to the behaviour of events calendar, isn’t it ? – the issue sets off by running wp-cron.php.
Unfortunately testing for conflicts isn’t possible at this time.Best regards
Hans-Gerd
February 26, 2018 at 11:46 am #1464058BrendanKeymasterHi Hans-Gerd,
Do you have any other cron running on your site besides wp-cron?
Thanks,
BrendanFebruary 27, 2018 at 10:53 am #1465150Hans-GerdParticipantThis reply is private.
February 28, 2018 at 1:25 pm #1466484BrendanKeymasterThis reply is private.
March 1, 2018 at 1:04 am #1466836Hans-GerdParticipantHi Brendan,
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?
yes indeed: I’m using “Duplicate TEC Event” – but haven’t had any issues so far. Copy a lot of events using that plugin.
Cheers,
Hans-GerdMarch 7, 2018 at 1:00 pm #1472638BrendanKeymasterHi Hans-Gerd,
We have seen issues with that plugin. I would try using Duplicate Posts instead. Not sure why you are now experiencing issues, but that plugin is not supported.
See here: https://wordpress.org/support/topic/plugin-changes-url-of-source-event-to-the-same-as-the-duplicate/
Let me know if the duplicate post plugin works.
Thanks,
BrendanMarch 8, 2018 at 4:24 am #1473123Hans-GerdParticipantHi Brendan,
thanks for answer and advice.I have deactivated “Duplicate TEC Event” and activated “Duplicate Post”. Now I will test this plugin.
Should I have further questions, I will be back here.Cheers,
Hans-GerdMarch 8, 2018 at 9:48 am #1473648BrendanKeymasterThanks Hans-Gerd!
March 12, 2018 at 4:08 am #1476279AndrasKeymasterHallo Hans-Gerd,
I just bumped into this thread and wanted to chime in quickly when I saw you are using a duplicator.
Although you are not using Event Tickets on this site, still might be worth knowing.
If you use ET / ET+ and you use a duplicator, then some data on ticket sales might be wrong on the duplicated event. There is a meta field saved for the event that tracks the total sales and that will get duplicated too. This should be zeroed.
I already proposed this change to the dev of “Duplicate TEC Event”. Hopefully he can implement it soon.
Grüsse,
AndrasMarch 12, 2018 at 8:08 am #1476543Hans-GerdParticipantHi Andras,
thanks for your advice.We are not using ET/ET+, so fortunately we have no issues with ticket sales.
Now we have deactivated “Duplicate TEC Event” and activated “Duplicate Post”. That plugin seem to work without any issues.
Grüsse,
Hans-GerdMarch 12, 2018 at 1:22 pm #1476852BrendanKeymasterHi Hans-Gerd,
Thanks for the feedback.
Brendan
March 13, 2018 at 12:49 am #1477244Hans-GerdParticipantHi Brendan, hi Andras,
is it possible to find out the event(s), which caused this issue and to correct them ? – Still I’m getting the message (via mail).Cheers,
Hans-Gerd -
AuthorPosts
- The topic ‘PHP Warning: Invalid argument supplied for foreach()’ is closed to new replies.