6.0.0-alpha12
6/16/25

[#6258] Fatal error: Call to a member function on a non-object in /usr/share/horde3/kronolith/lib/api.php on line 720
Summary Fatal error: Call to a member function on a non-object in /usr/share/horde3/kronolith/lib/api.php on line 720
Queue Kolab
Type Bug
State No Feedback
Priority 1. Low
Owners wrobel (at) horde (dot) org
Requester dizzy_devil_be (at) yahoo (dot) fr
Created 02/14/2008 (6332 days ago)
Due
Updated 03/26/2008 (6291 days ago)
Assigned 03/12/2008 (6305 days ago)
Resolved 03/26/2008 (6291 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/26/2008 10:42:30 AM dizzy_devil_be (at) yahoo (dot) fr Comment #8 Reply to this comment
Hi,

I can't test that for the moment as i don't have access to the server.

I'll post the results as soon as i can get access (probably in 1-2 weeks)



best regards,

eleni
03/26/2008 05:36:36 AM Gunnar Wrobel State ⇒ No Feedback
 
03/12/2008 07:17:14 AM Gunnar Wrobel State ⇒ Feedback
 
03/12/2008 07:17:04 AM Gunnar Wrobel Comment #7 Reply to this comment
Looks like Kolab is returning a single event instead of an array in
some cases, despite $getAll being true.
Hm, the $getAll part looks okay to me:



             if ($getAll) {

                 $events = array();

                 $events[] = &$event;

                 return $events;

             } else {

                 return $event;

             }



Does the problem persist if you use the kolab.php driver in CVS HEAD?
02/18/2008 07:20:11 PM Chuck Hagenbuch Assigned to Gunnar Wrobel
 
02/18/2008 07:20:03 PM Chuck Hagenbuch Comment #6
Version ⇒
Queue ⇒ Kolab
State ⇒ Assigned
Reply to this comment
Looks like Kolab is returning a single event instead of an array in 
some cases, despite $getAll being true.
02/18/2008 02:44:42 PM dizzy_devil_be (at) yahoo (dot) fr Comment #5 Reply to this comment
hi chuck,



here's the output:



object(kronolith_event_kolab)(23) { ["initialized"]=>  bool(true) 
["stored"]=>  bool(true) ["eventID"]=>  string(32) 
"652942e925a19d2139b77dc509d3fec2" ["_uid"]=>  string(32) 
"652942e925a19d2139b77dc509d3fec2" ["creatorID"]=>  string(37) 
"calamity.coyote@mydomain.org" ["title"]=>  string(16) "invitation 
dizzy" ["category"]=>  string(0) "" ["location"]=>  string(0) "" 
["status"]=>  int(2) ["description"]=>  string(0) "" ["attendees"]=>   
array(1) { ["dizzy.devil@mydomain.org"]=>  array(2) { ["attendance"]=> 
  int(1) ["response"]=>  int(1) } } ["keywords"]=>  array(0) { } 
["exceptions"]=>  array(0) { } ["start"]=>  &object(horde_date)(6) { 
["year"]=>  int(2008) ["month"]=>  int(2) ["mday"]=>  int(15) 
["hour"]=>  int(0) ["min"]=>  int(0) ["sec"]=>  int(0) } ["end"]=>   
&object(horde_date)(6) { ["year"]=>  int(2008) ["month"]=>  int(2) 
["mday"]=>  int(16) ["hour"]=>  int(0) ["min"]=>  int(0) ["sec"]=>   
int(0) } ["recurEnd"]=>  NULL ["durMin"]=>  int(1440) ["alarm"]=>   
string(1) "0" ["recurType"]=>  int(0) ["recurInterval"]=>  NULL 
["recurData"]=>  NULL ["_calendar"]=>  string(37) 
"calamity.coyote@mydomain.org" ["_varRenderer"]=>  NULL }



thx
02/15/2008 06:16:35 PM Chuck Hagenbuch Comment #4 Reply to this comment
Can you please put var_dump($events) somewhere above the fatal error, 
and report what $events actually is?
02/15/2008 10:09:45 AM dizzy_devil_be (at) yahoo (dot) fr Comment #3
New Attachment: api.php Download
Reply to this comment
hi chuck,



exactly,

     $events = $kronolith->getByUID($uid, true);

     if (is_a($events, 'PEAR_Error')) {

         return $events;

     }



however i can't see any errors in the logs

in attachent the whole api.php file




02/14/2008 09:12:42 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
What is $events? Unless your version isn't actually 2.1.4, there 
should be a check to see if $events is an error (right after $events 
is assigned a few lines above). If it's there, then you have an array 
of something else, and we'd need to know what it is to see where it's 
coming from.
02/14/2008 11:21:08 AM dizzy_devil_be (at) yahoo (dot) fr Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Queue ⇒ Kronolith
Summary ⇒ Fatal error: Call to a member function on a non-object in /usr/share/horde3/kronolith/lib/api.php on line 720
Type ⇒ Bug
Reply to this comment
debian etch  2.6.18-4-amd64, horde 3.1.3-4etch, imp4 4.1.3-4,  kolabd 
1.9.4-20060

get this error when trying to update the respondent status after an 
invitation has been accepted (via imp webmail)



/usr/share/horde3/kronolith/lib/api.php



     /* First try the user's own calendars. */

     $ownerCalendars = Kronolith::listCalendars(true, PERMS_EDIT);

     $event = null;

     foreach ($events as $ev) {

  (line 720)      if (isset($ownerCalendars[$ev->getCalendar()])) {

             $event = $ev;

             break;

         }

     }



Thanks!



Elena

Saved Queries