Booked Scheduler Community Support
September 20, 2017, 07:50:31 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Booked 2.5 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Can't add ICS/ical to Google calendar again  (Read 185 times)
peterfreeth
Newbie
*

Karma: 0
Posts: 12


« on: August 20, 2017, 05:29:05 PM »

Google calendar integration seems to have stopped working again. I noticed that Thunderbird/Lightning on my desktop was showing events from my Booked calendar as normal, but my Android phone had stopped showing events.

Checking in Google calendar, if I add the Booked URL I get: The address that you provided did not contain a calendar in a valid ical or GData format.

Note, I can remove and add the ical URL in Lightning, that works fine, it's only Google that throws up the error. I have tried a 3rd party android app 'Subscribed Calendars' and that won't sync to the Booked calendar either. I've also tried the app "icalsync" and again, it doesn't sync.

Any ideas?

Here's a sample of the ical file when I visit the URL. The only thing that looks odd is that the MAILTO: link has no new line before it, so I'm wondering if that is messing up the format, and if so, how to fix it?

BEGIN:VCALENDAR
VERSION:2.0
METHOD:REQUEST
PRODID:-//BookedScheduler//NONSGML //EN
BEGIN:VEVENT
CLASS:PUBLIC
CREATED:20170724T115357Z
DESCRIPTION: XXXXXXXXXXXX
DTSTAMP:20170724T115357Z
DTSTART:20170818T170000Z
DTEND:20170818T180000Z
LAST-MODIFIED:20170809T173527Z
LOCATION:Coaching Session
ORGANIZER;CN=XXXXXXXXXX:MAILTO:XXXXXXXXX
STATUS:CONFIRMED
SUMMARY:
UID:5975dfd595ac6095749705&geniXXXXX
SEQUENCE:0
URL:http://geniuslearning.co.uk/calendar/Web/reservation.php?rn=5975dfd595ac6095749
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
END:VEVENT

END:VCALENDAR

Logged
peterfreeth
Newbie
*

Karma: 0
Posts: 12


« Reply #1 on: August 21, 2017, 11:08:52 AM »

I think I found one problem - according to the validator at https://icalendar.org/validator.html Booked is terminating each line with a LF, not the CRLF required by the standard. Where can I find the code to change that?
Logged
peterfreeth
Newbie
*

Karma: 0
Posts: 12


« Reply #2 on: August 21, 2017, 02:26:59 PM »

Actually, Google ignores that. I have found the problem. The Booked! template is putting an empty line at the beginning of the ical file.
Logged
peterfreeth
Newbie
*

Karma: 0
Posts: 12


« Reply #3 on: August 21, 2017, 05:15:21 PM »

I'm overwhelmed by the support!

I removed the empty line in the ical.tpl file in the tpl_c directory, which I know is compiled from ical.tpl but I can't see an empty line in the original file and so some other file is adding it.

Now the situation is as follows:

The ics importer app on my Android works fine

If I download the ics and manually import it to Google, it works fine

If I add URL to Google it still doesn't work...

!
Logged
lUomino
Newbie
*

Karma: 0
Posts: 13


« Reply #4 on: September 06, 2017, 08:06:50 PM »

I just got it working for me in v. 2.6.6. I'll coordinate with Nick to get it released soonest.
Logged
babba
Newbie
*

Karma: 0
Posts: 4


« Reply #5 on: September 07, 2017, 11:19:40 AM »

@IUomino - would you be please so kind and tell us about the changes you nade in order to get rid of the empty line in the beginning of the OCS-File?

I am trying to import the feed from booked to all-in-one calendar (Word Press). I do not get an error message but no reservation gets imported - I guess due to the wrong format.

Any help on this is appreciated.

best regards
Dieter from Germany
Logged
gcm
Newbie
*

Karma: 0
Posts: 1


« Reply #6 on: September 14, 2017, 02:13:46 PM »

Checked this with an iCal validator on https://icalendar.org/validator.htm

Got some warnings an 2 important errors:

1. Lines not delimited by CRLF sequence near line # 1Reference: RFC 5545 3.1. Content Lines
2. Invalid DTSTAMP value, must be a date-time value near line # 5Reference: 3.3.5. Date-Time

Where is the *.ics processed? Has anybody an idea?

But I have although some trouble with php settings on a hosted domain (I cannot correct). Maybe this is the real issue?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!