New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error from line 306 in "RecurringEvents.php": Call to undefined method SMWDIError::getJD() #3598
Comments
29 is working and falls back to 28 in February if it does not have a 29. Strictly spoken 29, 30 and 31 should not be created in case the month does not have these days. However this would be a breaking change since 29.02. falls back to 28.02. Thus the fix should probably create a fall-back to the last day in the month for consistency reasons. Moreover one should probably not use the month option to the unit parameter in the first place if months should be skipped or alternatively use the exclude and include parameters. I am not absolutely sure what the most intuitive approach is here. |
As a user I'd expect a recurring date on the 31st to always happen at the last day of a month. If there is no such fallback then you also can't make a recurring event for just that: "last day of each month". |
Caused by How to fix it?Adding the following changes should be sufficient.
This should ensure that you'll get something like:
Haven't look at it, my main concern is to avoid a hard failure which excludes possible logic or application errors in the function itself. |
Ok, let's assume that we all agree that a recurring event for the 29th, 30th and 31st needs to be on the last day of the month instead if the respective month does not have that date. This is in line with the current behaviour for the 29th and I will document accordingly. |
As suggested by @mwjames in #3598 (comment) [skip ci]
#set_recurring_event:
fails for monthly events starting at 30 and 31
The pull fails, so let's decouple the issue. First we prevent the wiki from going berserk and than let's see what actually happens and create an new issue rather than drawing conclusions as to what the cause may be. |
Setup and configuration
Issue
Stack trace
Steps to reproduce
Trying to add something like
or
will cause the issue.
The text was updated successfully, but these errors were encountered: