Home › Forums › Calendar Products › Event Aggregator › iCal not importing
- This topic has 11 replies, 3 voices, and was last updated 7 years, 10 months ago by Support Droid.
-
AuthorPosts
-
May 12, 2016 at 4:20 am #1113691wbenwickParticipant
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
May 12, 2016 at 9:30 am #1113811CliffMemberThis 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).
May 12, 2016 at 9:48 am #1113871wbenwickParticipantThanks- that is a different validator than I was using to test with.
May 12, 2016 at 1:13 pm #1114012CliffMemberNo problem. Please let me know if/when you get another issue with this iCal URL.
May 12, 2016 at 5:04 pm #1114087wbenwickParticipantCliff-
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
May 13, 2016 at 6:41 am #1114223CliffMemberThanks 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.
May 13, 2016 at 6:54 am #1114226wbenwickParticipantOk, 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?
May 13, 2016 at 7:20 am #1114233wbenwickParticipantCliff-
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
May 13, 2016 at 7:50 am #1114260CliffMemberI’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).
May 13, 2016 at 8:06 am #1114268wbenwickParticipantThanks. 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.
May 13, 2016 at 8:12 am #1114274CliffMemberAre 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.
May 28, 2016 at 9:35 am #1120090Support DroidKeymasterThis 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. -
AuthorPosts
- The topic ‘iCal not importing’ is closed to new replies.