By ogoog@yahoo.com on
I've installed gallery now on two sites using drupal, and they both have the same problem. When you view the page for an image (not an album view or anything like that, the actual page for the image), there's this fatal error:
ERROR: requested index [] out of bounds [1]
Fatal error: Call to a member function on a non-object in /home/virtual/site25/fst/var/www/html/misc/gallery/view_photo.php on line 476
You can see for yourself on www.go4fun.org and www.sportsradio913.com
I took a look at line 476 in view_photo and I have no idea what's going on..
Comments
I will look at this tonight.
I haven't had much time this weekend to work out what your problem is, but I shall be looking at it tonight. I suspect it's to do with the way sessions are being handled. I'll get back to you on this soon, promise!
The Gallery port is a quick and dirty hack. If all you are wanting to do is put up a few simple image galleries, image.module integrated much better with the rest of Drupal.
I will in due course be working on making image.module match and then exceed the functionality of Gallery (slideshows, etc.). However, there are lots of other things to do first. Patience.
Cool, thanks!
Thanks for your help. Maybe I'll check out image.module. I am a big fan of gallery, I've used it before on some other sites and I was very excited when I heard someone made it into a module for drupal
I took a look at line 476 of view_photo.php and wasn't able to figure anything out really. But I tried commenting out line 476 and the fatal error goes away, but I still get the other "request index out of bounds" thing. Here's a link to a photo page with line 476 of view_photo.php commented out:
http://www.sportsradio913.com/module.php?mod=gallery&op=view_photo&set_a...
Ditto..
I had the same... on just about every gallery page. Adding comments didn't work either... but no reason was given.
Sessions
One of the problems with Gallery is that it needs sessions to work. Drupal doesn't currently support sessions unless you're logged in (its custom session handler stores session info in the user table of the database).
The lack of ability to add comments for anonymous users is documented in the README for the module:
Limitations:
- Anonymous users can't view photo properties or add comments.
This is due to the way Drupal handles session management.
--
Al Maw
almaw.com