'Requested index [0] out of bounds [35]' when viewing image

laemodost

Joined: 2004-11-04
Posts: 2
Posted: Thu, 2004-11-04 11:40

Hi!

I have a freshly installed gallery and added two albums without problems.
But when I try to view an image I get the error message:

Error: Requested index [0] out of bounds [35]
35 meaning the number of images in the current album
In /var/log/httpd-error.log the error message is:
[error] PHP Fatal error: Call to a member function on a non-object in /usr/local/www/data-dist/gallery/view_photo.php on line 392

line 392 of view_photo.php is:
list($imageWidth, $imageHeight) = $photo->image->getRawDimensions();

I found several other posts on this error message, but none of it was applicable with my version of it.

Could you please help me?

Thanks
Lars
----
Gallery version: gallery-1.4.4.3
Apache version: apache-1.3.31_6
PHP version: mod_php4-4.3.8_2
Graphics Toolkit: netpbm-10.24
Operating system: FreeBSD 5.2.1-RELEASE-p11
Web browser/version (if applicable): Firefox 0.93

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2004-11-04 11:51

Fixed in Gallery 1.4.4-pl4

Jens

 
laemodost

Joined: 2004-11-04
Posts: 2
Posted: Sat, 2004-11-06 14:45

Thanks a lot, I upgraded gallery and it is fixed now :)