dwenaus
dwenaus

Reputation: 3326

google calendar feed won't import

I've been at this for hours now and I can't seem to get this feed to import to google calendar: http://newtest.wpengine.com/programs/?ical=1

It imports fine when I download it then import it as a file. I even tried making it bare bones with just a few lines. It gets 100% in this validator: http://icalvalid.cloudapp.net/. Can anyone spot what i'm missing. here is the file

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Blue Mandala Retreat Site
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Deryk Wenaus Blog
X-WR-TIMEZONE: 
BEGIN:VEVENT
UID:http://ayahuas.ca/program/sample-program/
DTSTAMP:20130110T001222Z
CONTACT:
DESCRIPTION: a nice program. a nice program.
DTSTART;VALUE=DATE:20130124
DTEND;VALUE=DATE:20130127
LOCATION:
SUMMARY:sample program
URL:http://ayahuas.ca/program/sample-program/
END:VEVENT
END:VCALENDAR

the error i keep getting from google calendar is The address that you provided did not contain a calendar in a valid iCal or GData format.

I'm using header( 'Content-type: text/calendar; charset=UTF-8' ); as the header, and I've also tried header( 'Content-Disposition: inline; filename="calendar.ics"' ); with no luck.

Upvotes: 0

Views: 2477

Answers (2)

4lberto
4lberto

Reputation: 555

Google Calendar uses GoogleBot to request information of the calendar on your site. Maybe your server is preventing GoogleBot for entering in the ICal URL. Check your robots.txt

Upvotes: 1

Auberon Vacher
Auberon Vacher

Reputation: 4775

it is most likely the fact that you have specified a URL property value which does not point to your ics file itself.

the same icalendar file without the URL property should work (I tried to upload your icalendar file in google calendar via the file and not the url and it worked but it kept on trying to load a calendar, when removing the URL property this disappeared).

Upvotes: 0

Related Questions