iCal not importing

Home Forums Calendar Products Event Aggregator iCal not importing

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1113691
    wbenwick
    Participant

    An iCal feed won’t import and I can’t figure out why. I’ve checked it with the iCal validator and everything shows valid, and it imports into other iCal capable apps like Google Calendar, etc, without issue. Here is the feed URL:

    http://onecal.co/calendar/ical/e5384eb57456f39a7a2580c6ae31807d

    #1113811
    Cliff
    Member

    This iCal Validator results in an error: http://cl.ly/1u02110y2V17

    Granted, it’s not the clearest what the error actually is. The issue is that the paragraph description is broken into multiple lines: http://cl.ly/0U3H3o1M2g0x

    I also noticed your link is pretty slow to load. I don’t think that’ll be an issue, but I wanted to note it in case there may be a timeout after a certain amount of time (not sure if that’s part of iCal Validator’s code).

    #1113871
    wbenwick
    Participant

    Thanks- that is a different validator than I was using to test with.

    #1114012
    Cliff
    Member

    No problem. Please let me know if/when you get another issue with this iCal URL.

    #1114087
    wbenwick
    Participant

    Cliff-

    Still having issues. I made some improvements to the iCal feed, it loads without error in the validation tool you suggested and the events load in my desktop calendar and in Google Calendars. It still errors out using the iCal importer. I turned on debugging and don’t see any obvious errors. Thoughts?

    (same iCal URL as before)

    -Wes

    #1114223
    Cliff
    Member

    Thanks for getting the URL to validate.

    I tried importing the URL and it gave the error, “Unable to retrieve content from the provided URL.”

    So I downloaded that URL as an .ics file, uploaded it to the iCal Importer (like uploading to your WP Media Library), and then it did import.

    So I believe the issue is that URL blocking access when being accessed like this instead of being accessed by a regular user web browser. I remember this bug being logged somewhere but can’t find it right this minute. I’ll research further and update this ticket when I locate it.

    Thanks.

    #1114226
    wbenwick
    Participant

    Ok, that would be great. When I tried to import it as an .ics file upload, I get the error message about unable to load the URL. Assuming we are both using the same version of the iCal Importer?

    #1114233
    wbenwick
    Participant

    Cliff-

    Is there a timeout on the import by URL? I looked at my logs on the server that is feeding the iCAL and i noticed that the import tool display the unable to load message before the script finishes the query and outputs the results? If so, can this be extended?

    -Wes

    #1114260
    Cliff
    Member

    I’m on the latest: version 4.1.2

    You can obtain it from https://theeventscalendar.com/my-account/downloads/ if that’s not the version you’re using.

    I did find there is a timeout of 5 seconds and it can be modified by utilizing the tribe_events_ical_importer_connection_timeout filter, like this:

    https://gist.github.com/cliffordp/35dbf3ca36c57949228bf6ded23d62bf

    With that snippet, the URL loaded just fine! Good catch (especially since I found that internal bug report I previously mentioned and noticed it was already fixed so that wasn’t likely the issue).

    #1114268
    wbenwick
    Participant

    Thanks. It works fine for me now. I also improved the query I’m using so it runs even faster for large date ranges. I noticed the .ics file import is confusing- if I put a URL in for the feed, that creates a .ics attachment, it works. Uploading manually thru WP Media, does not work, as it wants to treat it like a URL. Not sure I understand what the difference is between the .ics and the URL options.

    #1114274
    Cliff
    Member

    Are you using iCal Importer v4.1.2 ?

    The parser shouldn’t be any different whether via a URL or an actual .ics file uploaded to the system.

    A URL can be setup for recurring import, but a single file cannot.

    #1120090
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘iCal not importing’ is closed to new replies.