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.

Question Warning: Division by zero in /default_ex/flat.php on line 207 & 208

More
17 years 5 months ago - 17 years 5 months ago #18515 by kai920
Same issue for me. I am on J 1.5.11 as well but was working fine until I disabled the 2 help page options. My thread is here: www.kunena.com/forum?func=view&catid=92&id=18509

I don't have CB but have Jomsocial.
Last edit: 17 years 5 months ago by kai920.

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

More
17 years 5 months ago - 17 years 5 months ago #18519 by kai920
tariq wrote:

Anyway, the lines from 201 to 209 in /com_kunena/template/default_ex/flat.php is as fallow :

Code:
201 <?php 202 if ($leaf->moved == 0) 203 { 204 // Need to add +1 as we only have the replies in the buffer 205 $totalMessages = $thread_counts[$leaf->id] + 1; 206 $curMessageNo = $totalMessages - ($last_read[$leaf->id]->unread ? $last_read[$leaf->id]->unread-1 : 0); 207 $threadPages = ceil($totalMessages / $fbConfig->messages_per_page); 208 $unreadPage = ceil($curMessageNo / $fbConfig->messages_per_page); 209 ?>

Is it correct or I need to change something?

Thanks,


Ah , I fixed it! Thanks to the posted code I see that it's looking for messages_per_page. For some reason mine was reset to 0! Something must have happened when I disabled the 2 help options.

Double check your Messages per page option in Kunena to make sure it is not 0.

Perhaps the code should be modified to use 1 if this option is set to "less than 1"?
Last edit: 17 years 5 months ago by kai920.

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

More
17 years 5 months ago #18548 by tariq
Hello Everyone,

I have solved the problem by uploading the templates files again from K.1.0.10 archive.

Thanks :cheer:

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

Time to create page: 0.116 seconds