Author Topic: iCal URL For Calendar Giving .php File Download?  (Read 7906 times)

KenSander

  • Newbie
  • *
  • Posts: 12
    • View Profile
iCal URL For Calendar Giving .php File Download?
« on: June 12, 2009, 02:09:25 pm »
I set the option to display rss/ical links, so I can grab the link for the calendar and set it up into Google Calendar.

I did this, however none of my events are shown in Google Calendar. I clicked the link that OpenGoo provided, and it takes you to a download .php file. Shouldn't this file be a .ics file or is this normal?

I'm looking for a way to get my OpenGoo events into Google Calendar. I wanted to use the URL so it's always up to date and I don't have to export all the time. How do I get it into Google Calendar?

William

  • Freshman
  • *
  • Posts: 13
    • View Profile
Re: iCal URL For Calendar Giving .php File Download?
« Reply #1 on: June 16, 2009, 11:20:33 am »
I had this problem while using Firefox.  I copied the link into IE7 and it worked.  You could also try changing http: to webcal:  If that doesn't work for you let me know and I'll work with you to get it resolved.

KenSander

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: iCal URL For Calendar Giving .php File Download?
« Reply #2 on: June 22, 2009, 04:12:16 pm »
Thanks for the reply.

Not sure I follow how getting it into IE7 did anything.

Here is the URL that is being produced when you visit the opengoo calendar and click the link to copy and paste the URL. (domain and info removed with generic stuff)

http://domain/index.php?c=feed&a=ical_export&n=John Smith&cal=0&t=0e1794ee069409f314b17f1986240ab8fbadcca3&isw=1

When you click on that link, it produces a download dialogue for a .php file. I tested in IE8 as well, but the same thing. Opening the php file does contain the calendar information with dates/summaries/events etc, but when I paste this URL into Google Calendar, nothing shows up. I was also under the impression it needed to be an .ics file.

xdirewolfx

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: iCal URL For Calendar Giving .php File Download?
« Reply #3 on: June 26, 2009, 12:44:31 pm »
Did I miss anything here? I enabled ical url from administration. Where do I get the ical url ?

Thanks

KenSander

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: iCal URL For Calendar Giving .php File Download?
« Reply #4 on: June 30, 2009, 03:27:33 pm »
Click on the calendar tab on any, or all projects, then in the right hand corner of the screen in the title area, you'll see a checkbox with "sub ws". Click the icon and you should get a popup with the URL.

I was just under the impression Google Calendar needs an .ics format file, and OpenGoo outputs a .php file with the calendar data.

saftogvann

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: iCal URL For Calendar Giving .php File Download?
« Reply #5 on: August 05, 2009, 09:07:26 am »
I have a similar problem - the my URL actually downloads a .ics file and the URL works perfect in iCal on my mac, but in Google Calendar it doesn't work...

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: iCal URL For Calendar Giving .php File Download?
« Reply #6 on: August 06, 2009, 03:33:40 pm »
Is your OpenGoo installation accessible to Google Calendar? Can you access your installation from PCs outside of your network?

KenSander

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: iCal URL For Calendar Giving .php File Download?
« Reply #7 on: August 07, 2009, 01:49:28 am »
Okay the upgrade to the newest OpenGoo seems to now produce a .ics file, rather than a .php file for the calendar unlike before.

The problem is I'm now also getting the same issue with the poster above.

I go to insert the URL of my calendar into Google Calendar and after clicking submit, a few seconds goes by and then I get the error on Google Cal that says "Error: Could not fetch URL".

I'm not running OG on an intranet or anything, just a normal accessible server from anywhere in the world.

How can I debug this further to find the problem?

I noticed when I download the file, firefox says "you have chosen to download cal.ics" and then underneath it, it says it is a php script. I wonder even though the file extension is .ics, the mime type isn't and is causing issues?

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: iCal URL For Calendar Giving .php File Download?
« Reply #8 on: August 07, 2009, 02:04:09 pm »
To debug this you could add a line to file 'application/controllers/FeedController.class.php' around line 150 to log something, so that you can tell whether this function is being accessed by Google Calendar:

Code: [Select]
function ical_export() {
Logger::log('ICAL ACCESSED');
$this->setLayout('ical');
...

Then check your 'cache/log.php' to see if something is printed after adding the URL to Google Calendar. You could also add some logging to file 'application/layouts/ical.php' to check whether the ical file is actually being generated.

KenSander

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: iCal URL For Calendar Giving .php File Download?
« Reply #9 on: August 07, 2009, 02:28:31 pm »
Thanks for your help. I've got to the bottom of the problem. I followed your instructions and noticed Google Cal wasn't even accessing the server as no log file was generated.

It was because the URL was a subdomain. I had a hunch last night before bed it might be something to do with that, and sure enough when I changed the URL around so instead of opengoo.domain.com it was domain.com/opengoo/ in the Google Cal URL field, things work perfect and the calendar is exported properly. I can still use the subdomain when working with OpenGoo, I just had to type it in different in the Google Calendar field.

Not sure if this is something to do with Google not allowing subdomains, or something with OpenGoo, but just a heads up to the people who might run into this problem.

fredr

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: iCal URL For Calendar Giving .php File Download?
« Reply #10 on: October 23, 2009, 10:42:18 am »
I was having the same problem--tried to add Opengoo calendar to Google calendar, but couldn't because of a 'can't parse URL' error.  On the other hand, downloading the .ics file, then importing into Google, worked.  This last experiment actually led to a solution...

Some research on the web (lots of people with the same problem) suggested it had something to do with the http headers, since the calendar content itself was successfully parsed.  Looking at examples of what worked and what didn't, it appears the culprit is the Content-DIsposition header.  Apparently (and for reasons I don't understand), Google calendar requires that this header be set to 'inline' rather than 'attachment'.  When I edited the ical.php layout in opengoo (1.5.3) to use inline and added the calendar to Google it was accepted with no problem.

There is one more part of the story, however.  While the opengoo calendar was accepted and opengoo events were immediately shown on the Google calendar, the Google calendar did not reflect any additions I made in OpenGoo.  More research suggests that this too is a common problem with Google calendar, but the best explanation I could find is that it is a Google bug (or at least shortcoming).  Apparently, Google only refreshes ical feeds infrequently and there is no way for the user to force a refresh.  This discussion on the google forums is recent and relevant:
http://www.google.com/support/forum/p/Calendar/thread?tid=7c6b4213a42e6923&hl=en

In my brief experience, the Google calendar did update my OpenGoo changes overnight.

If someone can add to this, it would be great--otherwise the value of adding OpenGoo calendars (or any others) to Google calendar is pretty much wasted since one never knows how far out-of-date an added calendar might be.

Fred

KenSander

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: iCal URL For Calendar Giving .php File Download?
« Reply #11 on: October 23, 2009, 10:55:01 am »
Ya I've noticed that iCal feed refresh issue as well, not just with OpenGoo but with all my external feeds. I never did any research into it, as I just assumed it was a Google issue not updating right away.

In my experience, it usually takes a few hours to update. Never days, or an extended amount of hours like discussed in that Google thread.

Baveskara

  • Hero Member
  • *****
  • Posts: 648
    • ICQ Messenger - 365673748
    • Yahoo Instant Messenger - cialis and beer
    • View Profile
    • generic cialis 5 mg from india
    • Email
average cost of cialis 20mg
« Reply #12 on: July 29, 2022, 01:14:56 am »
doxycycline cats This is overall great quality GW501516
« Last Edit: December 09, 2022, 04:55:11 pm by Baveskara »

Baveskara

  • Hero Member
  • *****
  • Posts: 648
    • ICQ Messenger - 365673748
    • Yahoo Instant Messenger - cialis and beer
    • View Profile
    • generic cialis 5 mg from india
    • Email
cheap online cialis pills
« Reply #13 on: January 20, 2023, 08:51:48 pm »
yellow pill viagra Days after we took the photos below, I noticed that my kids were really into coloring and writing on the dry erase board