Kunena 7.0.5 & Kunena 6.4.11 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.5 [K 7.0.5] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0.

The Kunena team is also pleased to announce the eleventh version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Recent Discussions error

More
16 years 8 months ago - 16 years 8 months ago #28891 by MacDaddy
On clicking "Recent Discussions", I'm taken to page: mysitename.com/home/forums/mylatest.html
Where I find this error:
Code:
Fatal error: Call to undefined method stdClass::getDisplayName() in /home/(~my directory~)/public_html/modules/mod_onlineusers/helper.php on line 32

Details:
Joomla 1.5.14 (SEO turned on)
Jom Social 1.2.206
kunena_v1.5.5 stable b1778 2009-08-15

Visited these 2 related posts but found no prevailing solution:
www.kunena.com/forum/105-solved-or-prior...my-discussions-and-m
www.kunena.com/forum/118-hacks-specials-...fehler-meldung-nach-
Last edit: 16 years 8 months ago by MacDaddy.

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago #28962 by MacDaddy
Really guys? nothing?
No speculations, no questions, no hypothesis?

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago #29020 by MacDaddy
Ok. And apparently this affects "My discussions" as WELL as "Recent discussions".
So both are dead in the water.

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago #29027 by xillibit

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago - 16 years 8 months ago #29064 by MacDaddy
Edit - No.. I am mistaken. I didn't see that specific thread. Im sorry.
Ill attempt to enter as suggested on that page, but im afraid the directions are vague,
where to insert the snip... what page exactly... etc.
Last edit: 16 years 8 months ago by MacDaddy.

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago - 16 years 8 months ago #29066 by MacDaddy
Here is helper.php.
I numbered the lines to follow the code easier.
As a reminder, the exact error is:

Fatal error: Call to undefined method stdClass::getDisplayName() in /home/~myfolder~/public_html/modules/mod_onlineusers/helper.php on line 32

Helper.php:
Code:
15 class modOnlineUsersHelper 16 { 17 function getUsersData( &$params ) 18 { 19 $model =& CFactory::getModel( 'user' ); 20 $limit = $params->get('count', '5'); 21 22 $rows = $model->getOnlineUsers( $limit ); 23 $_members = array(); 24 25 if ( !empty( $rows ) ) { 26 foreach ( $rows as $data ) 27 { 28 $user =& CFactory::getUser( $data->id ); 29 30 $_obj = new stdClass(); 31 $_obj->id = $data->id; 32 $_obj->name = $user->getDisplayName(); <---- Error on this line! 33 $_obj->avatar = $user->getThumbAvatar(); 34 $_obj->usertype = $user->usertype; 35 $_obj->link = CRoute::_( 'index.php?option=com_community&view=profile&userid=' . $data->id ); 36 $_members[] = $_obj; 37 } 38 } 39 return $_members;
Last edit: 16 years 8 months ago by MacDaddy.

Please Log in or Create an account to join the conversation.

Time to create page: 0.230 seconds