upgrading from 1.2.5 to 1.3.1: division by zero when viewing

devnul

Joined: 2002-08-23
Posts: 1
Posted: Fri, 2002-08-23 20:13

just upgraded to 1.3.1 and noticed, that in some albums above certain images there was a php warning: "division by zero error in ... forgot line --- the php file was Image(s?).php"

i found nothing about this behaviour in this forum, so i think, some will find this usefull:

delete the specific image (the error message appears above it) and re-upload it to the server. this will make the message dissapear.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sat, 2002-08-24 03:14

This is because of of the function getDimensions in Image.php.
I've run into this error before myself and just put in a check
to make sure it doesn't try to divide by zero.