Fatal error loading certain image folders when using "Add From Server"

cscarlet41
cscarlet41's picture

Joined: 2009-05-17
Posts: 1
Posted: Sun, 2009-05-17 11:27

I'm getting an error on all versions and svn's of Gallery 3 but it doesn't appear to have been reported previously.

I have a particular folder and sub folders that consistently give me the following error when I try to load them into Gallery 3 using the "Add from server" option. I am using the GD toolkit.

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16660 bytes) in /volumes/Digital 800 HD 1/Metcalfe World/components/gallery3/kohana/libraries/drivers/Image/GD.php on line 76

If I add an album manually and then select all the same images to be loaded then the loading process completes every time - although some of the images can occasionally be loaded without thumbnails.

I have other image folders and sub folders that load every time using Add from server and they contain more/larger images than the folders that fail. I therefore think it is something perculiar to the particular folders/images. I'm happy to provide the folders in question if that will help with any investigation/fault fixing required.

King Regards,
Paul

 
mcalistor

Joined: 2008-08-01
Posts: 2
Posted: Sun, 2009-05-17 21:45

Ditto, exact same error here using GD.
Host: Serverpoint.com
Linux 2.6.23-gentoo-r8
PHP 5.2.8
MySQL 5.0.51a

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-05-17 22:06

This is a FAQ :-) Try using ImageMagick or GraphicsMagick instead of GD if you're going to work with large images.

FAQ: PHP memory_limit - Why do I get the error Allowed memory size of Xxx bytes exhausted?
---
Gallery 3 problems? Check gallery3/var/logs before you post!
Gallery 3 nightlies: http://www.gallery2.hu/download/Gallery3/gallery3nightly.tar.gz
Gallery 3 subversion: http://codex.gallery2.org/Gallery:Using_Subversion#Quick_Start