I've got 3700+ images in multiple Albums in Gallery, and for some reason, it won't display. I get a PAGE CANNOT BE DISPLAYED error when I try to access Gallery.
As a test, I created a new (empty) Albums directory and configured Gallery to point to it. That works fine, I see an empty gallery, just as I expect. When I rerun setup to point it back to my real albums directory, same error.
Something is screwy in my Albums dir. Anyone any any idea's on how I can go about fixing this?
Gallery v1.3.1
RedHat 7.1
Apache 1.3
PHP 4.1.2 (RedHat RPM)
:cry:
Posts: 7994
Hmm. I have some questions about your situation that may shed some
light on the problem:
What's the URL to your Gallery?
Do you see anything anomalous in your Apache error log?
Can you view your albums individually?
Are you running mod_throttle?
Posts: 49
URL : http://www.ricefamily.org/ (aka crawler.mc.duke.edu)
Error logs show
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>
[Mon Sep 23 09:28:48 2002] [notice] child pid 754 exit signal Segmentation fault (11)
[Mon Sep 23 09:28:50 2002] [notice] child pid 842 exit signal Segmentation fault (11)
[Mon Sep 23 09:28:52 2002] [notice] child pid 753 exit signal Segmentation fault (11)
</TD></TR></TABLE><!-- BBCode End -->
after I tried to access the Gallery three times in a row.
Yes, they can be access individually : <!-- BBCode Start --><A HREF="http://www.ricefamily.org/modules.php?set_albumName=2002FathersDay&op=modload&name=gallery&file=index&include=view_album.php" TARGET="_blank">EXAMPLE</A><!-- BBCode End -->
mod_throttle is commented out in my config file. I've never tried to use it.
(NOTE) : I was just trying to work back through the albums from the Sub-Album Example listed above, and got the following error (first time I've gotten it!)
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 40 bytes) in /var/www/RiceFamily/modules/gallery/classes/Album.php on line 370
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 64 bytes) in Unknown on line 0
</TD></TR></TABLE><!-- BBCode End -->
Posts: 49
After generating the last set of fatal errors, I had to reboot the server to get it to respond to the sub-albums again. I've never had Linux hang up like that before. Almost like it locked the files, and wouldn't let them go until I bounced the server.
Before the reboot, the browser would just sit there 'thinking' about the site. No visual response, and I didn't have the patience to wait for an error message.
Posts: 49
It looks like something is sucking up too much memory.
I was looking at some of the albums, and tried to rename one. Memory error.
Then the server needed to be rebooted again. The rest of the site is OK, but the albums cannot be accessed once the memory error occurs.
Posts: 49
I modified php.ini to allow 10M, and still get the main album error and the Memory error. With the memory error, I only tried to Rename a Sub-Sub-Album.
Posts: 7994
I finally figured out who you are :smile: Funny.
Anyway, this is a known issue with Gallery sucking up *way* too much memory. Jesse Mullan's got a patch in the works to cut this way back, but it's not yet in CVS. In the meantime, you may try setting your memory limit a lot higher to see if you can get around the problem. Also, you can try the solution from here:
http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=168&530
to cut down the number of hits on the main album page (as that loads all the albums and is slow).
Posts: 49
OK, I've had it turned up to 10M, but I'll give it a shot at 50M and see how that goes.
I'd be interested in trying the updated code when it becomes available. I've been needing to trim back the number of images in the gallery for a while now, this looks like as good an excuse as any, assuming I can get it to let me manage the albums again.
Posts: 49
Well, 50M did it. I can now get into the Gallery again.
As a thought, this problem didn't show up until I upgraded my PHP install to the RedHat build of 4.1.2. The problem might not be with Gallery, but rather with something in PHP not releasing memory the same way anymore.
There are people with larger Gallery installs than I have, and they don't seem to have this problem. Probobly not worth spending a lot of time on for G1, but something to keep in mind for G2. I'd rather see the Gallery team get G2 functional than spend a lot of time on this kind of problem.
BTW: I wan't trying to be funny, just discreet. I use this same Nickname on the PostNuke sites, so it's convenient to stay consistent.
Thanks for the help!!