Allocation error trying to add images

Phoca Gallery - image gallery extension
JugglingReferee
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 26 Aug 2011, 23:00

Allocation error trying to add images

Post 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?
JugglingReferee
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 26 Aug 2011, 23:00

Re: Allocation error trying to add images

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Allocation error trying to add images

Post 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
If you find Phoca extensions useful, please support the project
Post Reply