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 database error on category listing - listcat.php line 236 - SOLVED

More
16 years 10 months ago - 16 years 10 months ago #22436 by vsma
Hi,

I found a bug today and fixed it so I thought it might be helpful for someone else.

How to reproduce it: click on Categories when you are logged in
Error thrown: listcat.php, function: trigger_dberror, line 236


Now where is the fix for that:

kunena.php, line 425

Before:
// save fbsession
$fbSession->currvisit = $systime;
$fbSession->save($fbSession); <-- the culprit

After:
// save fbsession
$fbSession->userid = $my_id;
$fbSessionArray = array($fbSession->userid => $fbSession);
$fbSession->save($fbSessionArray);


Explanation:
$fbSession inherits mosDBTable and the save() method takes an array as a parameter so I just created a new array containing the $fbSession object to pass this on to the save method instead of passing the object itself.

=> Without this fix no user sessions are saved ever into the database so the category listing will never work and the whole concept of new posts since last user's visit either.


If this bug was already found and/or fixed then never mind.

Hope this help!


My configuration
Joomla 1.0.15
CB 1.2.1
PROMA 2.2
Kunena 1.0.10
Last edit: 16 years 10 months ago by vsma.

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

More
16 years 10 months ago #22439 by koaweb
Yeah VMSA! That bug was driving me crazy. I just finished posting on the wrong thread and saw your post.

Thanks a million.

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

Time to create page: 0.332 seconds