Page 1 of 1

Warning: Division by zero in C:\Apache2.2\htdocs\lib\...

Posted: Wed Aug 15, 2007 3:29 am
by 0tolerance
When trying to view the various reports that are a part of demo.mysql.php as well as in morg and any other page that calls on abstraction.php, I get the following error...

Code: Select all


Warning: Division by zero in C:\Apache2.2\htdocs\lib\extras\abstraction.php on line 916

Any ideas as to how to fix this issue?

Posted: Wed Aug 15, 2007 6:40 am
by Allan Hansen
This only happens in PHP 5.2.

Easy fix:

Open abstraction.php and insert the following lines at line 916:

if ($sz == 1) {
return;
}

Thanks..

Posted: Wed Aug 15, 2007 6:54 pm
by 0tolerance
That fix worked perfectly Allan, thank you and keep up the great work!!

Posted: Mon Sep 10, 2007 8:20 pm
by WaldoMonster
Thanks, did also do the trick for me with this setup:

PHP 5.2.3 & 5.2.4
Apache 2.2.4