Home › Forums › Calendar Products › Events Calendar PRO › Possible bug with recurrence series using last day of the month
- This topic has 7 replies, 3 voices, and was last updated 8 years, 11 months ago by
SiteCrafting.
-
AuthorPosts
-
March 13, 2017 at 3:08 pm #1253549
SiteCrafting
ParticipantHello,
We have a client who tried creating an event which recurred event month on the last day of the month. When the event is saved, the site eventually times out and the recurrence isn’t successfully saved. I took a look at the error logs and tracked down the potential source of the issue:
During the save process,
Tribe__Date_Utils::get_last_day_of_week_in_month( $curdate, $day_of_week )is called (a function of a utility class defined in the non-pro Events Calendar plugin), and the value of$day_of_weekpassed in is 8. The documentation for this function says that this parameter is meant to be “The index of the day of the week” and I’m assuming 8 is an invalid value (I’d assume it would be 6 or 7 depending on if the index is 0 or 1-based). As a result, the while loop in that function runs infinitely.I’ve been able to recreate this issue on a fresh install of WP 4.7.3 running the Twenty Sixteen theme and EC and ECP plugins version 4.4.4.
March 15, 2017 at 1:32 am #1254278Hunter
ModeratorHello,
Thank you for your in-depth post! Screenshots are always helpful too. I went ahead and attempted to reproduce the behavior based on the ‘Time & Date’ recurrence rules in the screenshot. When I went to publish the event, I experienced a fatal error:
Fatal error: Maximum execution time of 30 seconds exceeded in /…/wp-content/plugins/the-events-calendar/common/src/Tribe/Date_Utils.php on line 313
I checked our logged bugs and searched around our forums but came up empty-handled. With that said, I’ve logged a bug for the devs to review. Once I have more information, I’d be happy to update you. Downgrading to the version that works for you is an option until we can patch things up in a maintenance release.
Thanks again and have a great day. Cheers!
March 28, 2017 at 9:12 am #1260842SiteCrafting
ParticipantHi, I just wanted to check in about this issue. Any updates?
March 28, 2017 at 10:02 pm #1261247Hunter
ModeratorI checked the status of the report, but unfortunately not much has changed. The majority of our team (including the dev team) are on a retreat, so they weren’t able to review it before tying up any loose ends prior to leaving for the trip.
I’ll be sure to update you here once I see any new activity on the report. Thanks again for your continued patience and have a good evening.
April 14, 2017 at 9:42 am #1270191SiteCrafting
ParticipantHi Hunter, just wanted to check in to see if there are any updates.
-
This reply was modified 9 years ago by
SiteCrafting. Reason: Spelling, derp
April 17, 2017 at 6:56 am #1270637Barry
MemberHi @SiteCrafting, I’m afraid we haven’t had an opportunity to progress this one just yet — but this forum topic has been attached to our internal bug report so we’ll be sure to give you an update as soon as it is ready.
May 9, 2017 at 9:35 am #1280932Support 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 -
This reply was modified 9 years ago by
-
AuthorPosts
- The topic ‘Possible bug with recurrence series using last day of the month’ is closed to new replies.
