Support » Plugin: amr ical events lists » Fatal Error when using ical feed from The Event Calendar Pro

  • Hi.

    I am trying to parse a feed from the Event Calendar Pro with amr ical feed list, but it’s producing an error:

    Fatal error: Call to a member function format() on a non-object in /home/icalevents/www/test/wp-content/plugins/amr-ical-events-list/includes/amr-import-ical.php on line 1072

    I did a test on your test site under ‘PScoggan Test’ and am getting the same response.
    Any thoughts? The first thing that comes to mind is the url to the file doesn’t end in .ics?

    On my test server I am using a new install of 3.9.1 with Twenty Fourteen them and no other plugins.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author anmari


    I cannot see your test at Probaly you di d it via ics query parameter.

    That line is to do with the LAST_MODIFIED or CREATED properties.
    It seems to have received something it couldn’t turn into a date object.
    While obviously I can add code to get around that, doing that may lead to errors in ‘modified’ events. It would be better to see what the ics file contains and if possible cope with that (unless it is not an RFC 5545 standard of course)

    Can you please post or send me ( the public url you are using.

    Plugin Author anmari


    Hi Problem is with the last ‘event’ in the file. Google calendar also spews on the file you attached (albeit a bit more gracefully Google says:
    Processed zero events.

    Failed to import events: Unable to process your iCal/CSV file..

    The event causing the problem has no date (no start or end) and the last_modified and created fields have 0 but no acceptable date in them.


    Is there some way I could customize your plugin to accept this ical written the way it is? My needs are pretty basic in this instance. I need to display 4 or 5 events from this feed and that’s it.

    Plugin Author anmari


    Did you update to 4.7 yet ?
    It should ignore the dud event now.

    Note no point in using the ‘subscribe to calendar’ button as my plugin has no control over google not accepting files with dud events.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error when using ical feed from The Event Calendar Pro’ is closed to new replies.