Possible bug with recurrence series using last day of the month

Home Forums Calendar Products Events Calendar PRO Possible bug with recurrence series using last day of the month

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1253549
    SiteCrafting
    Participant

    Hello,

    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_week passed 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.

    #1254278
    Hunter
    Moderator

    Hello,

    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!

    #1260842
    SiteCrafting
    Participant

    Hi, I just wanted to check in about this issue. Any updates?

    #1261247
    Hunter
    Moderator

    I 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.

    #1270191
    SiteCrafting
    Participant

    Hi 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
    #1270637
    Barry
    Member

    Hi @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.

    #1280932
    Support Droid
    Keymaster

    Hey 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Possible bug with recurrence series using last day of the month’ is closed to new replies.