A PHP Error was encountered
Hi there
I was just doing a search for a numeric entry in a numeric fields and, whilst it came up with the correct results, the results page was headed by the following error. Although there are multiple fields available to search in this channel, in this collection they all have Weight: None, apart from the relevant fields: Price, which is a numeric (integer) field. What do I do to prevent these errors from occurring?
Cheers
Gabe
A PHP Error was encountered
Severity: Warning
Message: Division by zero
Filename: low_search/mod.low_search.php
Line Number: 631
A PHP Error was encountered
Severity: Warning
Message: Division by zero
Filename: low_search/mod.low_search.php
Line Number: 631
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/fourlet/public_html/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 408
Replies
Low 8 Jul 2012 10:04
Hmm, looks like a little bug. The word count function doesn't consider numbers a word.
To fix, open up mod.low_search.php in a text editor, go to line #626 and change the == to <=, so it says:
I'll add the fix to the next version.