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