Fixed
Project:
Recurring Events
Version:
3.0.x-dev
Component:
Recurring Events (Main module)
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 May 2025 at 09:02 UTC
Updated:
15 Jul 2026 at 14:34 UTC
Jump to comment: Most recent
Comments
Comment #2
muriqui commentedConfirmed still occurs on 3.x.
Comment #3
muriqui commentedComment #4
muriqui commentedSo it turns out that this is working as designed, but what it actually does is far more limited than what it sounds like it does (and arguably what it should do).
How it works now
The warning as currently designed only applies to the Consecutive Event recur type. If you try to create a consecutive event that will yield more instances than the configured threshold, a warning message appears inside the Consecutive Event field widget saying "Saving this series will create up to # event instances. This could result in memory exhaustion or site instability." Likewise, if you edit an existing consecutive event series and try to change the schedule to more than the threshold, the same warning appears on the "Confirm Date Changes" screen. If the "prevent save" option is enabled, attempting to create/edit a consecutive event with a schedule that exceeds the threshold will raise a form error on the Consecutive Event field and prevent the save.
Problems with the current approach
<span class="form-item--error-message">, which on the default admin theme doesn't get styled as a warning; it just appears as plain text. It's also awkwardly positioned between the Event Duration and Event Buffer fields, so it's possible to scroll it off the screen while still changing subfields that would affect it. That all makes it easy to miss.Recommended solution
The changes in #3605486: Add constraint validator to prevent invalid recurrence patterns may make some of this a bit easier to implement, so it's probably worth waiting for that fix to land before starting on this.
Comment #5
muriqui commentedComment #6
muriqui commentedAmending the plan a little: The AJAX warning that currently appears inside the Consecutive field widget is problematic because it doesn't take into account the excluded dates range or the pre_create alter hook, so it's not necessarily accurate to what will actually be generated. I also find it kind of annoying that it starts popping up before you're done filling in the schedule. Fixing that and making it work with all of the widgets would be a little complicated, and I don't think I like the impact on performance.
I think the better approach would be to lose the AJAX warning and just rely on the confirmation screen to make the user aware that they're exceeding the recommended threshold. That's easier to implement, it works consistently for all recur types whether creating or editing, you can't scroll past it, and it removes the lag from all the AJAX calls.
Comment #7
muriqui commentedFix is in progress, but depends on #3460881: Error when trying to create event series where config Event Series Time Intervals = 0, so working on getting that wrapped up first.
Comment #9
muriqui commentedComment #10
muriqui commentedComment #11
muriqui commentedIf you already have a series that exceeds the threshold, then enable the prevent save option, resaving that series without changing the date scheduling should not trigger the constraint violation. It should only trigger if the instances will be recreated.
Comment #12
muriqui commentedComment #13
joshf commentedThis passes testing for the following scenarios (all with threshold warning enabled):
Thanks for the patch!
Comment #15
muriqui commented