CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • civievent (1.9 and 2.0) Ical for events not working in drupal 5.6
Pages: 1 [2]

Author Topic: civievent (1.9 and 2.0) Ical for events not working in drupal 5.6  (Read 12658 times)

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: civievent ICAL issue with Calendar 2.0 - $100 Bounty to fix for Civi 2.0
February 21, 2008, 05:15:03 am
In Summary, I gather from Karen, the Drupal Calendar Moderator, there are two issues:

1. The .ICS headers are not correct and need (according to http://www.ietf.org/rfc/rfc2445.txt) :
'Content-Type: text/calendar; charset=utf-8';
'Content-Disposition: attachment; filename="calendar.ics"; ';

2. "DTSTART:20080229T141500Z" complies with the Ical spec but a "more common format is"
DTSTART;VALUE=DATE:20080229T141500Z
or
DTSTART;VALUE=DATE-TIME:20080229T141500Z
one issue is that ICAL is not conforming to the

Unfortunately, I do not have the programming skills to fix either.  Most people using ICAL with drupal will run into these problems when they upgrade to Calendar 2.0 or DateAPI 2.0, which fix the TimeZone issue and are currently release candidates.  1.9 / 2.0 are also not compatible with Google Calendars or other ICal services.

These do not seem to be listed as open issues for 1.9 or 2.0 when I click the issue list, but hope that we can still make the 2.0 final release.

I'm not a programmer and cannot do this myself, I'm volunteering to help a non-profit.  However, I can offer a $100 bounty if we can get this done for Civi2.0 and can offer any other assistance in testing or working it through with someone.
ref:
http://issues.civicrm.org/jira/browse/CRM-2654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_21923
http://drupal.org/node/217898
error: "warning: Invalid argument supplied for foreach() in /httpdocs/modules/calendar/calendar_ical.module on line 107"


Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: civievent ICAL issue with Calendar 2.0 - $100 Bounty to fix for Civi 2.0
February 21, 2008, 06:01:41 am
Here's some outcome from my further research:

1. re header issue - among other headers that we send when serving ics file, there are those two:

Content-Disposition: attachment; filename="civicrm_ical.ics"
Content-Type: text/calendar; charset=utf-8; profile="ICalendar"

This part seems ok and compliant to headers that are sent by other servers while serving Ical files (tested with this URL offered as an example by Karen).

However, it doesn't seem like it's absolutely necessary to serve those headers. Testing with another URL that people were pointing to as valid shown that it's not served with mentioned headers, but still works fine with google calendar or drupal module. Without getting into further detail, my guess is that has something to do with url format, especially .ics ending of it.

2. re DTSTART/DTEND additional parameters - it doesn't really seem to change the situation if those parameters are present or not, at least with Google Calendar. I have trouble forcing Calendar 5.x-2.dev snapshot to run on my sandbox, so didn't verify it yet here.

What's really fascinating when it comes to Google Calendar - if I save CiviCRM feed to a file and import it instead of adding a URL, it works fine, all the events are added nicely.

Will keep digging.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: civievent (1.9 and 2.0) Ical for events not working in drupal 5.6
February 21, 2008, 06:47:37 am
Quick report from battlefield: I managed to get Calendar running, mangled a bit with our iCal format and I think I managed to fix part of the issue. Need to leave the office in a couple of minutes, but will post more detailed update later today (evening in my timezone ;-) ).

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: civievent (1.9 and 2.0) Ical for events not working in drupal 5.6
February 21, 2008, 01:18:25 pm
that's encouraging!  Karen seemed to think this was the issue, but I wonder if there are multiple issues (ie. get it to work with google, but not drupal calendar 2.0.)   - let me know if I can help with any testing on the drupal side.

S.

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: civievent (1.9 and 2.0) Ical for events not working in drupal 5.6
February 21, 2008, 02:08:48 pm
Ok, it seems like I got it working with dev version of Calendar. Please take a look at drupal.demo.civicrm.org's feed and let me know if it works for you - you should be able to get it displayed properly in your install. If you want to update your install, wait for next beta or manually replace those two files with their current versions:
CRM/Utils/ICalendar.php
templates/CRM/Core/Calendar/ICal.tpl

The issue was solved by adding DATE-TIME attribute, as Karen suggested. It didn't become obvious to me at first place because of the testcase I chosen for my experiments. Looks like it triggered another bug with current (not dev) version of calendar and at some stage I got lost what's working and what's not. :-)  Anyways,  both versions should be working fine now.

There is still an issue with Google Calendar, which I'm going to investigate further.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: civievent (1.9 and 2.0) Ical for events not working in drupal 5.6
February 22, 2008, 05:23:11 am
thanks - i'll try this today.  pls let me know if you make headway w/ google.

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: civievent (1.9 and 2.0) Ical for events not working in drupal 5.6
February 22, 2008, 08:27:51 am
just saw an update from karen - interesting - she said the drupal Date module was the problem!  See: http://drupal.org/node/217898 . Wonder if there are 2 issues ????  I will try both the date patch and the civi patch and let you know.

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: civievent (1.9 and 2.0) Ical for events not working in drupal 5.6
February 22, 2008, 01:35:26 pm
After my fix, CiviCRM feed should work with both patched and non-patched calendar. Just let me know if it works for you.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: civievent (1.9 and 2.0) Ical for events not working in drupal 5.6
March 12, 2008, 06:17:05 pm

sonicthoughts / Shawn:

Did u get this to work with the new version of drupal calendar? if so can you please do a write up here on the steps involved

http://wiki.civicrm.org/confluence/display/CRMDOC/Using+Drupal+Calendar+with+CiviEvent

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • civievent (1.9 and 2.0) Ical for events not working in drupal 5.6

This forum was archived on 2017-11-26.