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

Locked
0tolerance
User
Posts: 9
Joined: Wed Aug 15, 2007 3:24 am

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

Post by 0tolerance » Wed Aug 15, 2007 3:29 am

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?

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Aug 15, 2007 6:40 am

This only happens in PHP 5.2.

Easy fix:

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

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

0tolerance
User
Posts: 9
Joined: Wed Aug 15, 2007 3:24 am

Thanks..

Post by 0tolerance » Wed Aug 15, 2007 6:54 pm

That fix worked perfectly Allan, thank you and keep up the great work!!

WaldoMonster
getID3() contributor
Posts: 112
Joined: Mon Apr 01, 2002 12:20 am
Location: Netherlands
Contact:

Post by WaldoMonster » Mon Sep 10, 2007 8:20 pm

Thanks, did also do the trick for me with this setup:

PHP 5.2.3 & 5.2.4
Apache 2.2.4

Locked