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 Warning: Division by zero in /default_ex/flat.php on line 207 & 208

More
16 years 10 months ago #18436 by tariq
Hello,

After upgrade to k 1.0.10 & Cb 1.2.1, I am receiving this error (check attachment) when I brows a category in the forum:

Warning: Division by zero in /home/abc/public_html/components/com_kunena/template/default_ex/flat.php on line 207

Warning: Division by zero in /home/abc/public_html/components/com_kunena/template/default_ex/flat.php on line 208


Any advice,

Thanks

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

More
16 years 10 months ago - 16 years 10 months ago #18439 by Lintzy
could you please give us the following information, we (= Kunena Team) are collecting all facts around this category bugs - thank you very much!

Which Joomla Version?
Last edit: 16 years 10 months ago by Lintzy.

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

More
16 years 10 months ago #18444 by tariq
Hello,

Lintzy wrote:

Which Joomla Version?


Joomla 1.5.11

Thanks,

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

More
16 years 10 months ago #18447 by Lintzy
ahhhhhh, you just pointed me, to Joomla update 1.5.11, i did not realize it yet.

Thank you! :laugh:

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

More
16 years 10 months ago - 16 years 10 months ago #18458 by xillibit
Hello,

I have just tested Kunena 1.0.10 on Joomla! 1.5.11 and I haven't this problem, I think it's related to community builder, try to disable it for tested. With CB there are a lot problems...
But it's possible too that CB doen't cause this problem.

I don't provide support by PM, because this can be useful for someone else.
Last edit: 16 years 10 months ago by xillibit.

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

More
16 years 10 months ago #18480 by tariq
Hello,

xillibit wrote:

I think it's related to community builder, try to disable it for tested.


Did that, didn't work :(

I also don't think it's related to J1.5.11, as the error showed when I upgraded from K1.0.9 to K1.0.10, and I was using J1.5.10 then, and I thought upgrading to J1.5.11 will solve it, but unfortunately not.

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,

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

Time to create page: 0.538 seconds