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
Error for non autorithed users
Less
More
Posts: 28
Thank you received: 2
16 years 2 months ago #59515
by pawa
I have error:
Code:
Fatal error: Class 'KunenaUser' not found in /var/www/nvrsk.org/components/com_kunena/funcs/listcat.php on line 237
Call Stack:
0.0002 667016 1. {main}() /var/www/nvrsk.org/index.php:0
0.1327 12351544 2. JSite->dispatch() /var/www/nvrsk.org/index.php:68
0.1339 12359512 3. JComponentHelper->renderComponent() /var/www/nvrsk.org/includes/application.php:124
0.1364 12827080 4. require_once('/var/www/nvrsk.org/components/com_kunena/kunena.php') /var/www/nvrsk.org/libraries/joomla/application/component/helper.php:162
0.1364 12827464 5. KunenaApp->__construct() /var/www/nvrsk.org/components/com_kunena/kunena.php:764
0.2643 21820664 6. CKunenaListcat->display() /var/www/nvrsk.org/components/com_kunena/kunena.php:702
0.2643 21820816 7. CKunenaTools->loadTemplate() /var/www/nvrsk.org/components/com_kunena/funcs/listcat.php:335
0.2646 21829960 8. require('/var/www/nvrsk.org/components/com_kunena/template/nvrsk.org/categories/listcat.php') /var/www/nvrsk.org/components/com_kunena/class.kunena.php:742
0.2735 22105800 9. CKunenaListcat->displayCategories() /var/www/nvrsk.org/components/com_kunena/template/nvrsk.org/categories/listcat.php:10
0.2735 22105800 10. CKunenaListcat->loadCategories() /var/www/nvrsk.org/components/com_kunena/funcs/listcat.php:260
my solution is:
Code:
Index: /trunk/components/com_kunena/kunena.php
===================================================================
--- /trunk/components/com_kunena/kunena.php (revision 236)
+++ /trunk/components/com_kunena/kunena.php (revision 238)
@@ -300,10 +300,11 @@
// Assign previous visit without user offset to variable for templates to decide
$this->prevCheck = $kunena_session->lasttime;
} else {
// For guests we don't show new posts
+ $userprofile = KunenaFactory::getUser();
$this->prevCheck = CKunenaTimeformat::internalTime()+60;
}
if(JDEBUG){
$__profiler->mark('Session End');
Is it rigth ?
Please Log in or Create an account to join the conversation.
Less
More
Posts: 28
Thank you received: 2
Less
More
Posts: 10784
Thank you received: 1329
16 years 1 month ago #59622
by xillibit
Hello,
How to reproduce your issue ?
Can-you plesae report here your configuration settings ?
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.
Less
More
Posts: 28
Thank you received: 2
16 years 1 month ago #59679
by pawa
Joomla 1.5.20
Kunena 1.6 RC2
JomSocial 1.8.8
Request for index forum page
Please Log in or Create an account to join the conversation.
Less
More
Posts: 10784
Thank you received: 1329
Less
More
Posts: 7245
Thank you received: 565
16 years 1 month ago #60263
by Matias
It looks like that in some cases KunenaUser cannot be found as it's not imported..
To fix the problem I added:
kimport('user');
just before the error.
Please Log in or Create an account to join the conversation.