WordPress.org

Forums

amr ical events lists
Fatal Error when using ical feed from The Event Calendar Pro (5 posts)

  1. jpscoggan
    Member
    Posted 9 months ago #

    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.

    https://wordpress.org/plugins/amr-ical-events-list/

  2. anmari
    Member
    Plugin Author

    Posted 9 months ago #

    Hi,
    I cannot see your test at test.icalevents.com. 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 (anmari@anmari.com) the public url you are using.

  3. anmari
    Member
    Plugin Author

    Posted 9 months ago #

    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.

    BEGIN:VEVENT
    DTSTART;VALUE=DATE-TIME:
    DTEND;VALUE=DATE-TIME:
    DTSTAMP:20140620T131331
    CREATED:0
    LAST-MODIFIED:0
    UID:0--@http://crystalbridges.org
    SUMMARY:
    DESCRIPTION:
    URL:
    GEO:-95.712891;37.09024
    END:VEVENT
  4. jpscoggan
    Member
    Posted 9 months ago #

    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.

  5. anmari
    Member
    Plugin Author

    Posted 9 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic