VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: djliquid on September 13, 2011, 07:31:09 AM

Title: Fatal error: Out of memory (allocated 31457280) (tried to allocate 11648 bytes)
Post by: djliquid on September 13, 2011, 07:31:09 AM
FML!

Fatal error: Out of memory (allocated 31457280) (tried to allocate 11648 bytes) in /homepages/1/db#/htdocs/jeanag.com/administrator/components/com_virtuemart/helpers/img2thumb.php on line 132


Lines 130-138 of img2thumb.php (132 is in bold)


case "jpg":
if( function_exists("imagecreatefromjpeg") ) {
[b]$orig_img = imagecreatefromjpeg($filename);[/b]
} else {
$app = JFactory::getApplication();
$app->enqueueMessage('This server does NOT suppport auto generating Thumbnails by jpg');
exit;
}
break;


Example:

http://jeanag.com/index.php/shop/cart
Title: Re: Fatal error: Out of memory (allocated 31457280) (tried to allocate 11648 bytes)
Post by: Milbo on September 13, 2011, 09:14:11 AM
Also, simuar here, no one had this problem yet and  there are some people around using a lot images. Take a look on the bottom of the page of the media uploader. For me it displays: "Supported filetypes for thumbnail creation GIF, JPG, PNG, WBMP". Is your extension listed?
Title: Re: Fatal error: Out of memory (allocated 31457280) (tried to allocate 11648 bytes)
Post by: djliquid on September 13, 2011, 17:59:04 PM
Quote from: Milbo on September 13, 2011, 09:14:11 AM
Also, simuar here, no one had this problem yet and  there are some people around using a lot images. Take a look on the bottom of the page of the media uploader. For me it displays: "Supported filetypes for thumbnail creation GIF, JPG, PNG, WBMP". Is your extension listed?

mine are just jpegs - and less than 800px x 800px at largest, as far as I remember. it has made them for the products just not the thumbnail previews. they are writable and all...  :(
Title: Re: Fatal error: Out of memory (allocated 31457280) (tried to allocate 11648 bytes)
Post by: djliquid on September 13, 2011, 18:10:48 PM
QuoteWarning: imagejpeg() [function.imagejpeg]: Unable to open '/homepages/1/db#/htdocs/jeanag.com/images/stories/virtuemart/product/resized/bluesetback3_72_144x144.jpg' for writing: Permission denied in /homepages/1/db#/htdocs/jeanag.com/administrator/components/com_virtuemart/helpers/img2thumb.php on line 292

I get this error on the category pages where the thumbnail should be.
Example:
http://jeanag.com/index.php/shop/sets

but the actual item is fine.
http://jeanag.com/index.php/shop/sets/Bralet-set
Title: Re: Fatal error: Out of memory (allocated 31457280) (tried to allocate 11648 bytes)
Post by: kobiavr on January 09, 2012, 20:46:01 PM
i have the same problem...

Fatal error: Out of memory (allocated 69206016) (tried to allocate 14728 bytes) in /home/hadiber/public_html/administrator/components/com_virtuemart/helpers/img2thumb.php on line 132
Title: Re: Fatal error: Out of memory (allocated 31457280) (tried to allocate 11648 bytes)
Post by: sincera on January 30, 2012, 04:18:08 AM
Hi I got exactly same problem with img2thumb.php.
I'm using VM 2.0 and I already allow the maximum memory size to 32MB is there any way to fix it?
Title: Re: Fatal error: Out of memory (allocated 31457280) (tried to allocate 11648 bytes)
Post by: sincera on January 30, 2012, 04:35:24 AM
I figure out, my image is too big