[IP.Calendar 3.2.2 AND 3.3.0] Upcoming events block on board index shows no forthcoming events
Submitted bfarber, Nov 03 2011 03:21 PM | Last updated Apr 15 2012 08:23 PM
There is a bug in IP.Calendar 3.2.2 where-by the Upcoming Events block displayed on the board index can periodically reset, showing "No forthcoming events" instead of a list of upcoming calendar events.
The bug can be resolved by patching an IP.Calendar PHP file in your installation. The patch is slightly different for 3.2.2 and 3.3.0
FOR Calendar version 3.2.3---
Open admin/applications_addon/ips/calendar/modules_public/calendar/view.php
Find
Change this to
FOR Calendar version 3.3.0----
Same file.. Find
And change it to
This change should prevent the task that runs once a day from wiping out the events cache, causing the aforementioned issue. After making this change, you will need to visit the ACP to recache your events if the block on the board index is currently empty. To do this, visit the ACP, go to the System tab, and click on Cache Management under Tools and Settings. Under the Calendar tab, click the button to recache the "calendar_events" cache.
The bug can be resolved by patching an IP.Calendar PHP file in your installation. The patch is slightly different for 3.2.2 and 3.3.0
FOR Calendar version 3.2.3---
Open admin/applications_addon/ips/calendar/modules_public/calendar/view.php
Find
$this->functions = new $classToLoad( $this->registry );
Change this to
$this->functions = new $classToLoad( $this->registry, $return );
FOR Calendar version 3.3.0----
Same file.. Find
$this->functions = new $classToLoad( $this->registry, false, $return );
And change it to
$this->functions = new $classToLoad( $this->registry, $return, $return );
This change should prevent the task that runs once a day from wiping out the events cache, causing the aforementioned issue. After making this change, you will need to visit the ACP to recache your events if the block on the board index is currently empty. To do this, visit the ACP, go to the System tab, and click on Cache Management under Tools and Settings. Under the Calendar tab, click the button to recache the "calendar_events" cache.












1 Comments
Do you have a tip, alternative approach, or extra information you want to share with the IPS community regarding this article? Did you spot an issue with this article, or is it missing useful information? Feel free to contribute by adding a comment!
Comments are not for questions or support. Such comments will be deleted.
Digityman
Nov 14 2011 05:03 PM