Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] 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.

The Kunena team is also pleased to announce the twelfth version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question K 1.5.11: Search Results = 0 causes divide by zero error in search

More
16 years 2 months ago - 16 years 1 month ago #45653 by clockworkdeth
Hi, new user here.

I've already searched the forums for a solution and couldn't find one.

I'm running Kunena 1.5.11 & Joomla Version 1.5.15

I receive these errors when performing any search
Code:
Warning: Division by zero in sharpinternational.net/sharp/components/com_kunena/lib/kunena.search.class.php on line 382 Warning: Division by zero in sharpinternational.net/sharp/components/com_kunena/lib/kunena.search.class.php on line 382

As you may have noticed, it's just the same error twice.

The only changes I've made were to remove the tabs at the top and the advanced search options in both the profile box and the search page. These error messages appeared on a clean installation so I'm positive that those changes did not start this problem. I would tell you to check it out for yourselves but the forum is located in a restricted area of the site right now.

oh yeah before i forget line 182 is:
Code:
$pagination = KunenaSearchPagination($this->func, $q, $this->getUrlParams(), floor($limitstart/$limit)+1, $limit, floor($totalRows/$limit)+1, 7);

Any help would be great. I'm trying to get this forum running smoothly ASAP. Thanks in advance :)
Last edit: 16 years 1 month ago by sozzled. Reason: Changed subject to improve search relevance

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

More
16 years 2 months ago #45654 by sozzled
Replied by sozzled on topic Re: Division by Zero
It looks like you stuffed something up. Best idea is to replace the file(s) that you were editing with the original version(s) in the installation kit and start again. Because we have no access to your website I can't see any other way of helping you better. Sometimes it's better to leave some things alone.

Seems like the value of $limit is set to zero. Perhaps the code was meant to read,
Code:
$pagination = KunenaSearchPagination($this->func, $q, $this->getUrlParams(), floor($limitstart/$limit+1), $limit, floor($totalRows/$limit+1), 7);
Just guessing. :S

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

More
16 years 2 months ago #45656 by clockworkdeth
Replied by clockworkdeth on topic Re: Division by Zero
hmm I tried replacing the code with yours but that doesn't seem to be the solution.

This error occurred on a clean install of kunena before I changed anything. I also replaced the files with the backup of the originals and that didn't work.

Thanks for the guess though. I'll see if I can make it temporarily available to those on these forums. I just don't want my regular users accessing it right now.

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

More
16 years 2 months ago #45658 by sozzled
Replied by sozzled on topic Re: Division by Zero
Hold on a moment. You said the error was at line 382, but you posted the contents of line 182. Is that right?

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

More
16 years 2 months ago #45682 by clockworkdeth
Replied by clockworkdeth on topic Re: Division by Zero
hmmmmm you know... I think you are correct. I'm not at my work computer with the files right now so I can't confirm that but I think so... it sounds like something I would do.

Any info you may be able to provide before I get into work tomorrow would be great man thank you.

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

More
16 years 1 month ago #46322 by clockworkdeth
Replied by clockworkdeth on topic Re: Division by Zero
I think i'm just going to disable searching right now. I know in the long run that will only hurt my forums performance but I think I'm going to switch to another forum software soon enough anyway. Kunena is just not what i want anymore. My experience with VB software has been much more intuitive.

Anyway...

I think it's funny that Kunena is a "misspelling" on your site.

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

Time to create page: 0.262 seconds