[#3560] PHP Fatal error: Call to a member function getData() on a non-object in /usr/share/horde/turba/display.php on line 76
Summary PHP Fatal error: Call to a member function getData() on a non-object in /usr/share/horde/turba/display.php on line 76
Queue Turba
Queue Version 2.1-RC2
Type Bug
State Resolved
Priority 1. Low
Owners Chuck Hagenbuch <chuck (at) horde (dot) org>
Requester glen (at) delfi (dot) ee
Created 03/03/2006 (957 days ago)
Due
Updated 03/03/2006 (957 days ago)
Assigned 03/03/2006 (957 days ago)
Resolved 03/03/2006 (957 days ago)
Attachments
Milestone
Patch No

History
03/03/2006 Chuck Hagenbuch Comment #3
State ⇒ Resolved
Reply to this comment
Fixed; will be in the next RC or in the final release, whichever comes next.
03/03/2006 Chuck Hagenbuch Deleted Attachment: display.html
 
03/03/2006 Chuck Hagenbuch State ⇒ Assigned
Assigned to Chuck Hagenbuch
 
03/03/2006 glen (at) delfi (dot) ee Comment #2
New Attachment: display.html
Reply to this comment
i'm attaching output after changing code to:

/* Get the contact's history. */
if ($object->getValue('__uid')) {
     $history = &Horde_History::singleton();
     $log = $history->getHistory('turba:' . 
($object->getValue('__owner') ? $object->getValue('__owner') : Auth:
     $a = print_r($history,1);
     $m = "history=$history; <pre>$a</pre>";
     echo $m;
     echo "log[$log]<br>\n";
     foreach ($log->getData() as $entry) {

i hope this will ease solving the bug.
03/03/2006 glen (at) delfi (dot) ee Comment #1
Queue ⇒ Turba
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Summary ⇒ PHP Fatal error: Call to a member function getData() on a non-object in /usr/share/horde/turba/display.php on line 76
Type ⇒ Bug
Reply to this comment
PHP Fatal error:  Call to a member function getData() on a non-object 
in /usr/share/horde/turba/display.php on line 76

that line is:
     foreach ($log->getData() as $entry) {

i don't have history configured as i use only ldap.

the error i get if i browser to contact card and try to open it.