Php Fatal Error Tried To Allocate Bytes

Any ideas please

Strange I get this when trying to access the product of just 1 product on the site, (well 1 that I know of)

product is here, though I have duplicated product, and also changed image but get same error.

www.hivis.co.uk/pulsarail-orange-padded-hivis-bomber-jacket-pr515.html

<div class="message">
Sorry, service is temporarily unavailable.
div>
body>
html>

config.local is

// Log everything, but do not display
error_reporting(E_ALL);
ini_set('display_errors', 0);

// Set maximum memory limit
if (PHP_INT_SIZE == 4 && (substr(ini_get(‘memory_limit’), 0, -1) < “64”)) {
// 32bit PHP
@ini_set(‘memory_limit’, ‘128M’);
} elseif (PHP_INT_SIZE == 8 && (substr(ini_get(‘memory_limit’), 0, -1) < “256”)) {
// 64bit PHP
@ini_set(‘memory_limit’, ‘256M’);
}

if (!defined(‘CONSOLE’)) {
// Set maximum time limit for script execution.
@set_time_limit(3600);

No sooner had I posted than I found the solution. One of the additional images was the culprit NOT the main image.

Once deleted it works

Any indication about what related to that image was chewing up so much memory?

Any indication about what related to that image was chewing up so much memory?

Probably the size.?

Probably the size.?

Most likely it was the size. GD may fail to generate thumbnails with such errors if the image is huge. Proper solution is to use optimized images, but increasing the memory_limit should also help.

Yes I think it was size, BUT, we did optimise all images, maybe some snook through on this product, it did have 20 images