Strange warning NEED HELP

datajunkie

Joined: 2002-08-26
Posts: 2
Posted: Mon, 2002-08-26 10:08

The Error: Warning: Division by zero in /var/www/html/html/modules/gallery/classes/Image.php on line 221

have piled through the faq, this forum, and been denied the help link that is pointed at sourceforge. And I still see nothing coming close to answering what I need to do to get images displaying...

Could someone please anwswer me
:???:

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Mon, 2002-08-26 20:26

Actually, if you had done a Forum search, you would have seen this issue
listed already. One person has had luck deleting the image and re-uploading
it. Otherwise you can try adding a check Image.php like I did so that Gallery
does not try to divide by zero. But you're better off trying to re-upload first.

 
datajunkie

Joined: 2002-08-26
Posts: 2
Posted: Tue, 2002-08-27 01:53

I tried the re-uploading then tried ftping it and useing the local function. Still didn't work I was thinking that perhaps commenting out the function would work but I am just getting to that part of the process. :roll:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-08-27 05:23

So you're saying that you deleted the image, then uploaded a new copy of it and the same image has the same problem again?

This problem happens when Gallery is unable to determine the size of an image. Try re-uploading it again, but this time turn on debug mode, capture the output and post it here.