((HELP)) -- Warning: Division by zero

gsso

Joined: 2004-12-09
Posts: 2
Posted: Thu, 2004-12-09 03:42

I recently upgraded to v1.4.4-pl4 and i keep getting this error on one of my albums. does anyone know of a fix???
Please help.. emergency

Warning: Division by zero in /home/XXX/public_html/modules/gallery/classes/Image.php on line 236

Warning: Division by zero in /home/XXX/public_html/modules/gallery/classes/Image.php on line 167

PHP v4.3.9
Apache 1.3.33 (Unix)
Operating system Linux
Broswer: IE 6.0
Gallery v1.4.4-pl4

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Thu, 2004-12-09 05:54

Quit trying to divide by zero!

Seriously though, how bout some more info? Like, what are you doing that causes this? A link to your site? Everything you can think of that we are not able to determine via reading your mind over the internet.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2004-12-09 11:19

Hi,

i looked at those lines.
At these lines there are calculations done with height and width.
This error can only occur, when an image has a height = 0

So i can only agree with fryfrog ;)
We need some more information.

Jens