Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I just did an update to 7.x-2.9 on my local install and I brought up an existing ics feed view. For some reason I am getting this error (see attached).
I've double checked the call stack. The Date module is enabled and the code looks fine. Any ideas on what's going on here?
Not sure if this is a bug report or a support request..
Comment | File | Size | Author |
---|---|---|---|
#7 | date_ical-fix-date_repeat_split_rrule-2049697-5.patch | 983 bytes | coredumperror |
#4 | Screen Shot 2013-07-25 at 11.20.36 AM.png | 100.63 KB | cdmo |
#3 | Screen Shot 2013-07-25 at 9.53.03 AM.png | 31.35 KB | cdmo |
Screen Shot 2013-07-24 at 5.07.41 PM.png | 128.23 KB | cdmo |
Comments
Comment #1
cdmo CreditAttribution: cdmo commentedI just had a thought that this might be due to skipping a version. It looks like the update for me took me from 2.7 to 2.9, skipping 2.8. I'll try to revert, perhaps I missed a db update in the 2.8 version or something. I'll try that and report back.
Comment #2
coredumperror CreditAttribution: coredumperror commentedNo, it's not an issue with skipping 2.8; there were no database updates for either 2.8 or 2.9.
This appears to be a bug in Date, though it's a bit misleading because the function in question is
date_ical_parse_rrule()
. Date iCal does not define that function, Date API does. My suggestion would be to install the latest recommended release of the Date module (either upgrade if you have 2.5 or less, or downgrade if you have the dev version). Then do a DB update and clear your cache, and try checking out your ical feed view again.Comment #3
cdmo CreditAttribution: cdmo commentedNope, that didn't fix it. Going from 2.7 to 2.8 worked fine. But when I update to 2.9 I see the error message pop up in the View.
When I enable date_ical via drush after disabling it, I get this error:
Missing Feeds plugin DateIcalIcalcreatorParser. Please contact your site administrator. [warning]
As you can see from the attached, my iCalcreator library is present and found on my system. I've flushed the cache and run cron several times.
Comment #4
cdmo CreditAttribution: cdmo commentedOne more comment, I tried out the latest dev branch, and got the same error, though a different line on
date_ical_plugin_style_ical_feed.inc
.Comment #5
heatherwoz CreditAttribution: heatherwoz commentedI have a similar error, and it seems to be tied to repeating events as coredumperror mentions. Everything works fine with 2.8. With upgrade to 2.9 it starts throwing the error in view preview, and the feeds are broken. When I edit the event and make it non-repeating, the error stops appearing and the feed works. Repeating events work fine in 2.8 (I reverted to that for now).
For me the error appears in Firefox as:
Comment #6
cdmo CreditAttribution: cdmo commentedI'm sorry for not responding to #2 yet, but, as it stands I've had Date 7.x-2.6 installed this whole time.
Comment #7
coredumperror CreditAttribution: coredumperror commentedOK, I tracked down the ultimate problem. It's a very subtle bug in the Date Repeat module. The function
date_repeat_split_rrule()
calls functions from thedate_api_ical.inc
file, but doesn't actually load that file. It works for Date Repeat because the only place in Date Repeat that callsdate_repeat_split_rrule()
loads that file before making the call. But since Date iCal callsdate_repeat_split_rrule()
directly, the load never happens.So, here's a patch to make Date iCal perform the file load right before calling
date_repeat_split_rrule()
. Strictly speaking, the correct fix here is to put the file load call intodate_repeat_split_rrule()
itself, but Date appears to have been abandoned, so I'm just going to work around their bug.Please let me know if this fixes the problem for you, so I can commit this patch.
Comment #8
cdmo CreditAttribution: cdmo commentedThanks (again), that fixed it for me. Also, that's a handy function,
module_load_include()
!And I hope Date isn't completely abandoned, it's sorta important :)
Comment #9
heatherwoz CreditAttribution: heatherwoz commentedYes, that helps with my error too.
Comment #10
coredumperror CreditAttribution: coredumperror commentedYeah, I hope Date hasn't really been abandoned, but there's a lot of evidence to suggest that KarenS (the primary maintainer of Date and Calendar) has been completely ignoring it since December. Heck, she used to own this project, but back in January I asked to become a co-maintainer, got no response, and needed to use Drupal.org's Abandoned Project mechanism to take it over.
Comment #11
coredumperror CreditAttribution: coredumperror commentedOK, I pushed this patch up to git, so the new dev version (whenever d.o's bot gets around to building it) will have this fix. I think I'll end up pushing out 7.x-2.10 some time soon, too. The update to 2.9 shook loose a couple other bugs that I'm still working on.
Comment #12
heatherwoz CreditAttribution: heatherwoz commentedGreat, thanks!