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

Carlos A. Bonamigo carlos.ab at gmail.com
Thu Nov 2 20:48:11 CST 2006


Em Quinta 02 Novembro 2006 02:54, dso escreveu:
> Try changing the load order of your cookbook recipes.  If you just added
> one, move it up in the list.  This has helped me resolve some header
> issues.  You may need to experiment a little.
> 
> Daniel
> 
> Carlos A. Bonamigo wrote:
> > Hi ,
> > 
> > I'm getting some error messages when I hit the "Site.Search" page. It looks 
> > like this :
> > 
> > Warning: Division by zero in /home/me/htdocs/pmwiki.php on line 1180
> >  
> > Warning: Cannot modify header information - headers already sent by (output 
> > started at /home/me/htdocs/pmwiki.php:1180) in /home/me/htdocs/pmwiki.php on 
> > line 930
> > 
> > Also, text inside the tables look bigger ("apple pie" instructions)  , but 
> > other pages using tables are not affected.
> > 
> > TIA
> > 
> > CarlosAB
Em Quinta 02 Novembro 2006 02:54, você escreveu:
> Try changing the load order of your cookbook recipes.  If you just added
> one, move it up in the list.  This has helped me resolve some header
> issues.  You may need to experiment a little.
> 
> Daniel
> 
> Carlos A. Bonamigo wrote:
> > Hi ,
> > 
> > I'm getting some error messages when I hit the "Site.Search" page. It 
looks 
> > like this :
> > 
> > Warning: Division by zero in /home/me/htdocs/pmwiki.php on line 1180
> >  
> > Warning: Cannot modify header information - headers already sent by 
(output 
> > started at /home/me/htdocs/pmwiki.php:1180) in /home/me/htdocs/pmwiki.php 
on 
> > line 930
> > 
> > Also, text inside the tables look bigger ("apple pie" instructions)  , but 
> > other pages using tables are not affected.
> > 
> > TIA
> > 
> > CarlosAB

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
 
Warning: Cannot modify header information - headers already sent by (output 
started at /home/me/htdocs/pmwiki.php:1180) in /home/me/htdocs/pmwiki.php on 
line 930

Line 1180 is from FomatTableRow and looks like this:

  $FmtV['$TableRowIndex'] = ($rowcount % $TableRowIndexMax) + 1;

and line 930 is from function PrintFmt :

    foreach($HTTPHeaders as $h) (@$sent++) ? @header($h) : header($h);

I f I remove the table inside Site/Search , everything works just fine. Any 
other page with tables (simple ones) gives me the same error messages.

Thank you for any clues on this.

CarlosAB





More information about the pmwiki-users mailing list