Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

This category is only for reporting defects or problems with Kunena 1.6 test versions with Joomla 1.6. This is NOT a support forum - there is no support for test versions. Users should NOT install K 1.6 alpha or beta test versions on websites with live production data.

Question [WORKAROUND]kunena 1.6.3 unread posts count shows for each category

More
15 years 8 months ago - 15 years 8 months ago #88238 by hache
Hi all !
I'm facing a rather disturbing issue on Kunena 1.6.3 (otherwise everything seems perfect). When I connect on the main page of the forum, the total unread posts count shows for almost each category, instead of showing the count specific for each category. I even have unread messages for categories that have no message...

Any one else having the same issue ? An idea of how to solve it ?

Screenshot of the bug in attachment.

My setup :
Joomla 1.6
Kunena 1.6.3
Community Builder 1.4
All is fresh install, no upgrade.

Here is my config :

This message contains confidential information

Database collation check: The collation of your table fields are correct

Legacy mode: Disabled | Joomla! SEF: Disabled | Joomla! SEF rewrite: Enabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 30 seconds | Max execution memory: 128M | Max file upload: 64M

This message contains confidential information

Joomla default template details : bizblue | author: mambasana.ru | version: r1.02-j1.6 | creationdate: 22/01/2011

Kunena default template details : Blue Eagle (default) | author: Kunena Team | version: 1.6.3 | creationdate: 2011-01-31

Kunena version detailled: Installed version: 1.6.3 | Build: 4344 | Version name: Parlare | Kunena detailled configuration:

Warning: Spoiler!

Third-party components: AlphaUserPoints: Disabled or not installed | CommunityBuilder: The file doesn't exist comprofilej.xml ! | Jomsocial: Disabled or not installed | UddeIm: The file doesn't exist uddeim.j15.xml !

Third-party SEF components: sh404sef: Disabled or not installed | ARTIO JoomSEF: Disabled or not installed | AceSEF: Disabled or not installed

Plugins: System - Mootools12: Disabled | System - Mootools Upgrade: Disabled | JFirePHP: Disabled or not installed | Kunena Discuss: Disabled or not installed | Kunena Search: Disabled or not installed | My Kunena Forum Menu: Disabled or not installed | My Kunena Forum Posts: Disabled or not installed

Modules: Kunena Latest: Disabled or not installed | Kunena Stats: Disabled or not installed | Kunena Login: Disabled or not installed

Last edit: 15 years 8 months ago by hache.

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

More
15 years 8 months ago #88578 by hache
I found a way to correct the count in the code. It's not pretty, but it's working !

components\com_kunena\funcs\listcat.php line 89
Code:
$catlist = implode ( ',', $catids ); $readlist = $this->session->readtopics; $lastVisit = $this->db->Quote($this->prevCheck) ; //added to store the time of the request

components\com_kunena\funcs\listcat.php line 126
Code:
if ($this->config->shownew && $this->my->id != 0) { // correct the count of new threads for each category $query = "SELECT COUNT(DISTINCT thread) FROM #__kunena_messages WHERE catid={$subcat->id} AND hold='0' AND time>{$lastVisit} AND thread NOT IN ({$readlist})"; $this->db->setQuery ( $query ); if (KunenaError::checkDatabaseError()) return; $subcat->new = $this->db->loadResult(); //end of correction

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

More
15 years 8 months ago #88660 by Matias
Which MySQL version do you have? I'm asking this, because of the original code seems to work well with a few MySQL 5.0 and 5.1 versions.

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

More
15 years 8 months ago - 15 years 8 months ago #88719 by hache
Looks like I'm a test user, since I have MySQL 5.5 :laugh:

Here is my SHOW Variables :
Variable_name Value
innodb_version 1.0.6
protocol_version 10
version 5.5.2-m2
version_comment MySQL Community Server (GPL)
version_compile_machine i386
version_compile_os pc-solaris2.10

Anyway, I did some code change to make it work. Not very pretty since I have 1 SQL request by category each time I display the index, but it looks like it's not slowing our website.

If you have some corrections you would like me to test, do not hesitate !
Last edit: 15 years 8 months ago by hache.

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

Time to create page: 0.121 seconds