00914: errors suddenly popping up for (seemingly) no reason

Summary: errors suddenly popping up for (seemingly) no reason
Created: 2007-04-13 14:31
Status: Closed - already fixed in 2.1.27
Category: Bug
From: zaroba
Priority: 5
Version: 2.1.26

PHP Version: 4.4.6

Description: it seems that starting in March or Feburary, i'm suddenly getting "Warning: Division by zero in /home/tuwrnet/public_html/tuwr/pmwiki.php on line 1100" errors on any page useing tables. theres one error for each row in the table on the page. after the list of that errors, there is always an error stating "Warning: Cannot modify header information - headers already sent by (output started at /home/tuwrnet/public_html/tuwr/pmwiki.php:1100) in /home/tuwrnet/public_html/tuwr/pmwiki.php on line 884".

the main thing is, NOTHING has been changed on the site or server to have caused the errors. the pmwiki.php file wasen't changed since i moved to the current webhost last October, but the errors only just started withen the past 2 months. so i have absolutly no clue what would be causeing them.

It's likely that your server recently had a PHP upgrade -- that's when the error starts to appear.

This problem was fixed in version 2.1.27 of PmWiki -- try upgrading to that version (or later) and see if the messages go away. The errors appear on any page that has a ||-table in it (see PmWiki.Tables).

Or, if for some reason upgrading isn't possible, then try setting $TableRowIndexMax = 1; .