Closed (outdated)
Project:
Event
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2008 at 17:04 UTC
Updated:
13 Apr 2018 at 21:01 UTC
Jump to comment: Most recent
I received the following error:
Call to undefined function ical_export() in sites/all/modules/event/event.module on line 803
This occurs when clicking on the ical icon in the "List of upcoming events" block when there are no upcoming events. Looking in the code, it appears that event_calendar_ical assumes that it will find some events, in which case it calls _event_node_ical, which includes ical.inc; however, if there are no events, nothing ever includes ical.inc. Adding the following as the first line of event_calendar_ical fixes the problem:
include_once(EVENT_PATH .'/ical.inc');
I hope that helps.
Comments
Comment #1
japerryEvent for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.