[pmwiki-users] mailto causes divide by zero

Patrick R. Michaud pmichaud at pobox.com
Wed Nov 1 09:21:38 CST 2006


On Tue, Oct 31, 2006 at 03:39:58PM -0800, Bob Sanders wrote:
> 
> On pmwiki 2.1.x and 2.2.x, as near as I can determine,
> pages containing a - mailto:, cause the following
> errors - 
> 
> Warning: Division by zero in /var/www/localhost/htdocs/pmwiki-2.1.26/pmwiki.php on line 1100
> Warning: Division by zero in /var/www/localhost/htdocs/pmwiki-2.1.26/pmwiki.php on line 1100
> Warning: Division by zero in /var/www/localhost/htdocs/pmwiki-2.1.26/pmwiki.php on line 1100
> Warning: Division by zero in /var/www/localhost/htdocs/pmwiki-2.1.26/pmwiki.php on line 1100
> Warning: Division by zero in /var/www/localhost/htdocs/pmwiki-2.1.26/pmwiki.php on line 1100
> Warning: Division by zero in /var/www/localhost/htdocs/pmwiki-2.1.26/pmwiki.php on line 1100
> 
> Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/pmwiki-2.1.26/pmwiki.php:1100) in /var/www/localhost/htdocs/pmwiki-2.1.26/pmwiki.php on line 884

Weird.  The error message seems to be coming from the (simple) table 
markup, not from mailto: .  Could you confirm that the page has a 
table on it -- i.e., is this perhaps a table of mailto: links?.

Do you still get the error if the mailto: links are converted into
normal text?

(And yes, this does appear to be a bug in the table markup, for
which I can issue a patch if we can confirm that this is the
source of the error.)

Thanks!

Pm




More information about the pmwiki-users mailing list