Recent Topics

[6.6.7] - Search Function - Warning: Division by zero ... _search.funcs.php on line 902

started by on Jan 19, 2016 – Last touched: Jan 24, 2016

Jan 19, 2016 02:01    

Hi,
I have got an crazy error now. I' using version 6.6.7 with the Tealpro Skin.

If I'm using the search function with the word "gez" all works fine. If I'm using the search function with the word "häring" I got this error:

Warning: Division by zero in [...]/blogs/inc/collections/_search.funcs.php on line 902

I don't know why this will be.

Jan 20, 2016 13:22

Hi,
you can search with the 2 words above. You will get this error as I described.

And the thing in debug mode I will try in the evening.

Jan 20, 2016 21:28

@ednong yes, I already saw the error at your site. The debug mode can give us more info about why is the warning being displayed.

Jan 21, 2016 00:22

@mgsolipa
Dude, you are crazy! &#59;) The screenshot is a long, very, very long screenshot. And its size is in compressed mode 2,8 MB. So its to big to upload here.

And I saw, there were almost 120 queries in it - but my screenshot tool only snaps until #62 o.O

<del>What do you need from this? All above the queries? Would that be enough?</del>

Ah ok, I see - until 20 MB are allowed here. So you will get this crapped screenshot ...

Jan 22, 2016 06:51

@ednong that's right, the screenshot is not useful because I can't read a word on it :D. I removed it from your comment.

The thing is that in debug mode you get extra information about the search results displayed just below each one of them. Maybe if you screenshot only that section, we could find something useful there to identify the issue. The best way would be to see all the debug result by ourselves, so it would be great if you set a password to the debug mode and share it via pm.

Jan 22, 2016 15:39

@mgsolipa
Oh it was too much information? &#59;&#41;

Okay, here I will go - a new screenshot with the details I guess you want. I hope, this are the right details.

Jan 22, 2016 15:43

Uh,
less than 60 chars for a filename are allowed only? My names are longer &#59;&#41;

Jan 23, 2016 10:36

less than 60 chars for a filename are allowed only? My names are longer

Yes @ednong, that value is controlled by $filename_max_length. More info here: http://b2evolution.net/man/advanced-php

Well, thanks for the screenshot, it was less helpful than I expected but I guess we can extract some information. We will keep trying to reproduce the issue in order to find a fix.

Did you find any other example of search term producing that output?

PS. I deleted your screenshot to avoid fullpath disclosure.

Jan 23, 2016 14:28

@mgsolipa

PS. I deleted your screenshot to avoid fullpath disclosure.

Ah okay, I forgot to pixelate the path ...

Other terms with same output - I don't know. This term I looked for randomly - and I found the bug ... &#59;&#41;


Form is loading...

powered by b2evolution – This forum is powered by b2evolution CMS, a complete engine for your website.