[pmwiki-users] Division by zero on Site.Search

Patrick R. Michaud pmichaud at pobox.com
Fri Nov 3 07:01:06 CST 2006


On Fri, Nov 03, 2006 at 12:48:11AM -0200, Carlos A. Bonamigo wrote:
> Now I have no recipe in my config.php and the error message still shows up 
> every time I look at Site/Search .
> 
> I'm using:
> 
> * gentoo
> * apache-1.3.34-r14:
> * php-5.1.6-r6
> * pmwiki-2.2.0-beta15
> 
> The error message looks like this:
> 
> Warning: Division by zero in /home/me/htdocs/pmwiki.php on line 1180

This appears to be a recent change to PHP that is causing
the bug to appear (where it didn't appear in previous versions
of PHP).

Try adding the following setting to local/config.php:

    $TableRowIndexMax = 1;

Pm




More information about the pmwiki-users mailing list