Allowed memory size of 268435456 bytes exhausted (tried to allocate 69764689 bytes)

Permalink
Hello,

Could someone suggest the best way to tackle this error code?

Cheers

 
Gondwana replied on at Permalink Reply
Gondwana
Have you uploaded large images to your site?
AthanD replied on at Permalink Reply
I have, but then have deleted the images and still the error persists.

This is the other info it gives me for the error:

if (false === imagealphablending($resource, false) || false === imagesavealpha($resource, true)) {
throw new RuntimeException('Image ' . $operation . ' failed');
}

if (function_exists('imageantialias')) {
imageantialias($resource, true);
}

$transparent = imagecolorallocatealpha($resource, 255, 255, 255, 127);
imagefill($resource, 0, 0, $transparent);
imagecolortransparent($resource, $transparent);

return $resource;
}
jero replied on at Permalink Reply
jero
You could try allocating 512MB of memory - sometimes 256 isn't enough.
AthanD replied on at Permalink Reply
Hello,

Thank you for the reply. What is the best way to change this?

Cheers
Gondwana replied on at Permalink Reply
Gondwana
Have a dredge around CPanel php settings (if relevant).