Bug in latest Calendar upgrade?
Submitted telcoman, Oct 21 2011 11:31 AM | Last updated Oct 21 2011 11:31 AM
There is an apparent bug in the latest calendar software. The events listings in the right hand bar will default back to "no forthcoming events" at times and you have to re-cache the calendar manually (scheduled does not work) to get them back. This happened after upgrading. It is affecting 2 different forums on 2 different servers, so i am sure its a bug. I put a trouble ticket in on it.
The only thing I did recently at the same time I upgraded, that may be the a cause by coincidence, is set a server load limit on both forums. I have just removed it off one of them to see if the problem goes away on that one.
The only thing I did recently at the same time I upgraded, that may be the a cause by coincidence, is set a server load limit on both forums. I have just removed it off one of them to see if the problem goes away on that one.
| Status: | Fixed |
| Version: | 3.2.1 |
| Fixed In: | 3.3.0 |











31 Comments
if( !$calendar->initCalendar( true ) ) { $this->cache->setCache( 'calendar_events' , array(), array( 'array' => 1 ) ); $this->cache->setCache( 'birthdays', array(), array( 'array' => 1 ) ); return; }that.. in /admin/applications_addon/ips/calendar/sources/cache.php is the culprit..
So.. True is for return.. so, it's returning false.. Which seems to lead back to this..
$this->calendar = $this->functions->getCalendar(); if( !$this->calendar['cal_id'] ) { if( $return ) { return false; }Which leads us back to this..
public function getCalendar( $calendar_id=0 ) { return $this->calendars[ !empty($calendar_id) ? ( isset( $this->calendars[ $calendar_id ] ) ? $calendar_id : $this->calendarId ) : $this->calendarId ]; }Since we're not passing a default calendar to it.. It's reading 0.. Failing? But, why when you run the task manually does it work?
Ok.. Manually run it.. I get $this->calendarId = 1, same when automated.
Manually run it or automated.. $calendar_id = 0
dump the whole shebang..
array(29) { ["cal_id"]=> string(1) "1" ["cal_title"]=> string(18) "Community Calendar" ["cal_moderate"]=> string(1) "0" ["cal_position"]=> string(1) "0" ["cal_event_limit"]=> string(1) "2" ["cal_bday_limit"]=> string(1) "1" ["cal_rss_export"]=> string(1) "1" ["cal_rss_export_days"]=> string(2) "14" ["cal_rss_export_max"]=> string(2) "20" ["cal_rss_update"]=> string(4) "1440" ["cal_rss_update_last"]=> string(10) "1318499593" ["cal_rss_cache"]=> string(318) " http://www.radiogodsforum.com/beta/calendar/1-community-calendar Thu, 13 Oct 2011 09:53:13 +0000 86400 Community Calendar " ["cal_title_seo"]=> string(18) "community-calendar" ["cal_comment_moderate"]=> string(1) "0" ["cal_rsvp_owner"]=> string(1) "1" ["perm_id"]=> string(2) "48" ["app"]=> string(8) "calendar" ["perm_type"]=> string(8) "calendar" ["perm_type_id"]=> string(1) "1" ["perm_view"]=> string(9) ",4,2,3,6," ["perm_2"]=> string(7) ",4,3,6," ["perm_3"]=> string(7) ",4,3,6," ["perm_4"]=> string(5) ",4,3," ["perm_5"]=> string(5) ",4,3," ["perm_6"]=> string(1) "*" ["perm_7"]=> string(5) ",4,3," ["owner_only"]=> string(1) "0" ["friend_only"]=> string(1) "0" ["authorized_users"]=> NULL }That's manual..
array(29) { ["cal_id"]=> string(1) "1" ["cal_title"]=> string(18) "Community Calendar" ["cal_moderate"]=> string(1) "0" ["cal_position"]=> string(1) "0" ["cal_event_limit"]=> string(1) "2" ["cal_bday_limit"]=> string(1) "1" ["cal_rss_export"]=> string(1) "1" ["cal_rss_export_days"]=> string(2) "14" ["cal_rss_export_max"]=> string(2) "20" ["cal_rss_update"]=> string(4) "1440" ["cal_rss_update_last"]=> string(10) "1318499593" ["cal_rss_cache"]=> string(318) " http://www.radiogodsforum.com/beta/calendar/1-community-calendar Thu, 13 Oct 2011 09:53:13 +0000 86400 Community Calendar " ["cal_title_seo"]=> string(18) "community-calendar" ["cal_comment_moderate"]=> string(1) "0" ["cal_rsvp_owner"]=> string(1) "1" ["perm_id"]=> string(2) "48" ["app"]=> string(8) "calendar" ["perm_type"]=> string(8) "calendar" ["perm_type_id"]=> string(1) "1" ["perm_view"]=> string(9) ",4,2,3,6," ["perm_2"]=> string(7) ",4,3,6," ["perm_3"]=> string(7) ",4,3,6," ["perm_4"]=> string(5) ",4,3," ["perm_5"]=> string(5) ",4,3," ["perm_6"]=> string(1) "*" ["perm_7"]=> string(5) ",4,3," ["owner_only"]=> string(1) "0" ["friend_only"]=> string(1) "0" ["authorized_users"]=> NULL }That's automated..
Same thing..
So.. I don't know, but if you comment out that first part.. It 'works'. But probably introduces a secondary problem.
Every single one of them has the little icon in red, instead of blue. I will PM you my root login.
admin\applications_addon\ips\calendar\modules_public\calendar\view.php
change
//----------------------------------------- // Functions class //----------------------------------------- $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'calendar' ) . "/sources/functions.php", 'app_calendar_classes_functions', 'calendar' ); $this->functions = new $classToLoad( $this->registry );to
//----------------------------------------- // Functions class //----------------------------------------- $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'calendar' ) . "/sources/functions.php", 'app_calendar_classes_functions', 'calendar' ); $this->functions = new $classToLoad( $this->registry, $return );I am having this same issue. If I do the above that rectifies the problem?
So far so good.
Thanks in advance
This has nothing to do with the bug reported.
That was no help at all just a waste of space.
1) Post in the peer help forum
2) Submit a support ticket
or
3) Start a new bug report
Your post in this report is akin to replying to a topic about strawberries discussing car engines.