Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Illegal division by zero : site_html_templates.pl

Quote Reply
Illegal division by zero : site_html_templates.pl
Please help me out with this one
Illegal division by zero at site_html_templates.pl line 1058.
Here's my line 1058

$totalpages = int($reviews/$reviews_per_page);
if ($totalpages < $reviews/$reviews_per_page) { $totalpages++; }
if ($page > $totalpages) { $page = 1; }

I am running review.cgi mod. I rechecked all my links.cfg and chmoded everything right what else can be wrong. Also, when there are no reviews, the page loads fine but when i add a review and validate it and then go back to it, I get this error.

Subject Author Views Date
Thread Illegal division by zero : site_html_templates.pl notoriousthug 1685 Aug 17, 2000, 3:09 PM
Thread Re: Illegal division by zero : site_html_templates.pl
Stealth 1582 Aug 17, 2000, 6:06 PM
Thread Re: Illegal division by zero : site_html_templates.pl
notoriousthug 1576 Aug 17, 2000, 9:02 PM
Thread Re: Illegal division by zero : site_html_templates.pl
Stealth 1578 Aug 17, 2000, 9:13 PM
Post Re: Illegal division by zero : site_html_templates.pl
notoriousthug 1578 Aug 17, 2000, 9:21 PM