- Posts: 3
- Thank you received: 0
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] 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
Question Conflict between My Discussions and mod_onlineusers.php
16 years 11 months ago - 16 years 11 months ago #16644
by helio
Conflict between My Discussions and mod_onlineusers.php was created by helio
Hi,
Please, I have a conflict between "my discussions" in kunena forum and "mod_onlineusers.php"
If I have "mod_onlineusers.php" enabled and If I check "my discussions" in Kunena, I get this message
Fatal error: Call to undefined method stdClass::getDisplayName() in E:\inetpub\vhosts\mywebsite.com\httpdocs\pt\modules\mod_onlineusers\mod_onlineusers.php on line 56
On line 56 I have this:
$html .= ' <a href="'.$userLink.'" title="'.$user->getDisplayName().'"><img width="32" src="'.$user->getThumbAvatar().'" alt="'.$user->getDisplayName().'" style="padding: 2px; border: solid 1px #ccc;" /></a>';
Please, how can I solve this?
Regards,
Helio
Please, I have a conflict between "my discussions" in kunena forum and "mod_onlineusers.php"
If I have "mod_onlineusers.php" enabled and If I check "my discussions" in Kunena, I get this message
Fatal error: Call to undefined method stdClass::getDisplayName() in E:\inetpub\vhosts\mywebsite.com\httpdocs\pt\modules\mod_onlineusers\mod_onlineusers.php on line 56
On line 56 I have this:
$html .= ' <a href="'.$userLink.'" title="'.$user->getDisplayName().'"><img width="32" src="'.$user->getThumbAvatar().'" alt="'.$user->getDisplayName().'" style="padding: 2px; border: solid 1px #ccc;" /></a>';
Please, how can I solve this?
Regards,
Helio
Last edit: 16 years 11 months ago by helio.
Please Log in or Create an account to join the conversation.
16 years 11 months ago - 16 years 11 months ago #16680
by helio
Replied by helio on topic Re: Conflict between My Discussions and mod_onlineusers.php
Just to add that Ive checked now and If someone is registered but havent posted anything yet, so that person can still access "My Discussions" function, but after something is posted by that person, then It in no more possible to access "My Discussions".
Anybody gets: Fatal error: Call to undefined method stdClass::getDisplayName() in E:\inetpub\vhosts\mywebsite.com\httpdocs\pt\modules\mod_onlineusers\mod_onlineusers.php on line 56
Anybody gets: Fatal error: Call to undefined method stdClass::getDisplayName() in E:\inetpub\vhosts\mywebsite.com\httpdocs\pt\modules\mod_onlineusers\mod_onlineusers.php on line 56
Last edit: 16 years 11 months ago by helio.
Please Log in or Create an account to join the conversation.
16 years 11 months ago #16695
by Matias
Replied by Matias on topic Re: Conflict between My Discussions and mod_onlineusers.php
I believe that I know what is happening in here: we have variable naming conflict with mod_onlineusers.
Can you check line 56 in E:\inetpub\vhosts\mywebsite.com\httpdocs\pt\modules\mod_onlineusers\mod_onlineusers.php and output the code into here.
Can you check line 56 in E:\inetpub\vhosts\mywebsite.com\httpdocs\pt\modules\mod_onlineusers\mod_onlineusers.php and output the code into here.
Please Log in or Create an account to join the conversation.
16 years 11 months ago #16744
by helio
Replied by helio on topic Re: Conflict between My Discussions and mod_onlineusers.php
I have post in the beginning of the thread.
On line 56 I have this:
$html .= ' <a href="'.$userLink.'" title="'.$user->getDisplayName().'"><img width="32" src="'.$user->getThumbAvatar().'" alt="'.$user->getDisplayName().'" style="padding: 2px; border: solid 1px #ccc;" /></a>';
Do you think It has solution Matias?
Best Regards,
Hélio
On line 56 I have this:
$html .= ' <a href="'.$userLink.'" title="'.$user->getDisplayName().'"><img width="32" src="'.$user->getThumbAvatar().'" alt="'.$user->getDisplayName().'" style="padding: 2px; border: solid 1px #ccc;" /></a>';
Do you think It has solution Matias?
Best Regards,
Hélio
Please Log in or Create an account to join the conversation.
16 years 11 months ago #16786
by Matias
Replied by Matias on topic Re: Conflict between My Discussions and mod_onlineusers.php
I believe that it may be easiest to replace all instances of $user with $o_user in that module. Changing them in Kunena is much more work.
Please Log in or Create an account to join the conversation.
16 years 11 months ago #16793
by zaks
Replied by zaks on topic Re: Conflict between My Discussions and mod_onlineusers.php
Is this a Joomla Core module that must be hacked to get "My Discussions" to work ? or some third party module ?
Please Log in or Create an account to join the conversation.
Time to create page: 0.276 seconds