Hey! The ParserIcalDateTimeElement class includes files to work with repeating dates. However, under the new batch feeds model it is possible that the object will be created on one page and used on another, so these files and functions won't exist, causing a crash. This patch should fix the problem.

David

Comments

ekes’s picture

Hi, thanks for this. For some reason your patch fails to apply

patching file ParserIcalFeedsParser.inc
patch: **** malformed patch at line 20: @@ -91,10 +99,14 @@

But anyway, reading the patch, I understand adding include_once if date_repeat.inc may not have been included before in this batch (line 91 onwards). But it should still be included before line 45 (where date_ical_parse_rrule() is called) shouldn't it? As they are include_once it's fine if it's in there twice.

David Goode’s picture

Hey, sorry yeah there were some other changes and I tried (unsuccessfully apparently) to edit the patch by hand :-) The line should be added around line 91, but it actually isn't necessary at line 45 because none of those API calls actually involve the include. It would be fine to leave it in though.

David

Anonymous’s picture

are your recurring events working in general? I was having problems getting recurring events to work at all. The original event is added, but none of the recurring ones.

I tried the patch here with the same results.

I also tried the test School.ics calendar included with parser ical, and it didn't handle those properly either.

**Edit**
Ahh i had never enabled the options in the Date field to handle recurring events so it never worked.

With it enabled and this patch things seem to be working well.

ekes’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.71 KB

Revised and ready to go - shall get there later today.

ekes’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.