Closed (fixed)
Project:
GCal Events
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2010 at 10:05 UTC
Updated:
15 Apr 2013 at 16:56 UTC
The module show old events from the Google calender.
Some of these events are from the past. Other old ones are not displayed.
How can I this be fixed?
Calender in question: http://www.google.com/calendar/embed?src=dpven58k1oekn0naovb9krrnig%40gr...
Drupal site with GCal_events: http://ematch.eu
Comments
Comment #1
anyr commentedSame, I have three blocks, and they are showing last March, October and November respectively. All have events for this month + the future, none of which are private.
Comment #2
anyr commented(This is true even with the cache disabled)
The script I wrote for the php site I'm transferring content from (to drupal) works ok on the same calendars
Comment #3
Se7enLC commentedTry the dev version
Comment #4
anyr commentedThanks but I just tried it and now it displays no events at all :/
Comment #5
bethallen commentedI am having the same issue. I've tried several different calendar feeds. They are all behaving differently. On one, that is an older calendar that's been around for a while, it is showing events from last august. On newer calendar, I am only getting events from next week and later, but nothing from this current week.
Is there something that has to be done on Google's end to configure the event feed?
Comment #7
perhenrik commentedI've upgraded to the dev-version and it still show old events.
Comment #8
mr_Zombie commentedI have this same problem. GCal shows nothing but old events and that makes this module pretty much useless.
Comment #9
Neues Atelier commentedHas anybody found a solution for that?
Comment #10
gmleonm commentedI had the same issue. Using an older version of simplepie.inc fixed it. Hope this helps others too.
Comment #11
cbutera commentedThis happened to me when using SimplePie 1.2. When I downgraded to 1.13 it worked. Hopefully a future release of SimplePie will fix this.
Comment #12
alexkb commentedI've downgraded to SimplePie 1.1.3, which has partially fixed the problem - I can see future events now, but the first two events are both "Christmas Day 1 January, 1970all day".
Any one have any suggestions for fixing this?
Comment #13
jimmynash commentedI ran into this issue with the 6.x-1.4 version but also needed the multiple calendar functionality that the dev version has in the block settings.
I upgraded to 6.x-1.x-dev to get that first and then moved on to addressing old events.
My SimplePie version on the simplepie.inc file is 1.2.1-dev. Drupal core version 6.19.
I added this to the gcal_events.module file on line 764 and it seems to have fixed the issue for me at this point.
I would think that there might be a case to show old events. If so, I think it would probably need to be a per block setting similar to the "Show events from today only" setting. Like a "Show Only Future Events" setting which could trigger something like I have above.
That way you could have a block on say an archives page that shows old events and then have another that only shows future events.
Please correct me if what I have done is not the right way or suggest a better way to handle this.
Comment #14
hondaman900 commentedI have the same issue where events on the online calendar are deleted but persist on the website GCal module display block. I made the above suggested change and it torpedoed the site with the following error message:
Fatal error: Cannot break/continue 1 level in /home/mediaq/lgsgsa.dreamhosters.com/modules/gcal_events/gcal_events.module on line 765
Thoughts/suggestions?
Comment #15
minicraig commentedThanks jimmynash, Have been using your addition with 6.x-1.x-dev for a while now but have since changed to 6.x-1.4.
I have found that a similar thing can be done in this case:
For Gcal events 6.x-1.4:
in file gcal_events.module (/sites/all/modules/gcal_events/gcal_events.module)
Find:
foreach ($temp as $item) {Add after:
hondaman900 just check your version no as to which of these two corresponds.
Implementing jimmynash's code on a new line just below
$gcal_date = date($dateformat, $unixdate);for 6.x-1.x-dev should work. This corresponds to line 764 if your version is correct and code hasn't been touched.I had a very long look through the code and from what I can see the arguments which define the dates are dropped at
$feed->set_feed_url($calendar_xml_address);on line 603.Comment #16
rlca commentedI have a calendar with events throughout 2011 and 2012, yet GCal v 6.1.4 only shows the dates occurring after January 20, 2012. Any thoughts on why this happens?
Comment #17
jdwfly commented@rlca - which simplepie version are you using? Downgrade to 1.1.3 to see if that solves your problem. Make sure to clear the cache.
Comment #18
rlca commented@ jdwfly - that seems to work. Thanks!
Comment #19
grguth commentedWhere can I find version 1.1.3? The only download available at their site is 1.2.
Comment #20
jdwfly commentedhttps://github.com/simplepie/simplepie/tarball/1.1.3
That will get you a tar.gz of it.
Comment #21
denisgre commentedDowngrading to 1.13 did not work for me but Minicraig's hack did. Perhaps this can be added to the next release.
Thanks Minicraig!
Comment #22
jdwfly commented6.x requires the older Simplepie.