6.0.0-beta1
9/19/25

[#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 (at) horde (dot) org
Requester glen (at) delfi (dot) ee
Created 03/03/2006 (7140 days ago)
Due
Updated 03/03/2006 (7140 days ago)
Assigned 03/03/2006 (7140 days ago)
Resolved 03/03/2006 (7140 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/03/2006 11:00:41 PM 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 10:49:45 PM Chuck Hagenbuch Deleted Original Message
 
03/03/2006 10:49:07 PM Chuck Hagenbuch Assigned to Chuck Hagenbuch
State ⇒ Assigned
 
03/03/2006 04:08:39 PM 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 04:03:35 PM glen (at) delfi (dot) ee Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
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
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.


Saved Queries