Page 1 of 1

Allocation error trying to add images

Posted: 15 Dec 2012, 15:30
by JugglingReferee
Hello,

I am receiving this all of a sudden:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10368 bytes) in /administrator/components/com_phocagallery/libraries/phocagallery/image/imagemagic.php on line 214

Code: Select all

208:	        switch($type) {
209:	            case IMAGETYPE_JPEG:
210:					if (!function_exists('ImageCreateFromJPEG')) {
211:						$errorMsg = 'ErrorNoJPGFunction';
212:						return false;
213:					}
214:					$image1 = ImageCreateFromJPEG($fileIn);
215:					break;
Any ideas?

Re: Allocation error trying to add images

Posted: 15 Dec 2012, 16:59
by JugglingReferee
33554432 is exactly 32 MB. I'm guessing that there is a boundary somewhere.

This happens when I try to create thumbnails.

When I click "Stop Thumbnail Generation" which appears in the top right in red, I go back to the Images tab, and I can select images without a thumbnail, and then choose "Regenerate", but no actual thumbnails are regenerated.

Re: Allocation error trying to add images

Posted: 25 Dec 2012, 22:32
by Jan
Hi, if you click on "stop thumbnail creation" then the automatically creation is stopped and should be enabled in Options.

The problem is, the GD library on your server does not have any memory to create thumbnails from your image, this means:

- resize the image
- or increase memory so GD library will be able to manage large images.

Jan