ZenphotoCMS Forum
ImageMagick and "Fatal error: Out of memory" - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: ImageMagick and "Fatal error: Out of memory" (/thread-9843.html)



ImageMagick and "Fatal error: Out of memory" - makar - 2012-04-11

Hello,

There is a following problem. Shortly after enabling ImageMagick, site becomes inaccessible with errors like:

when visiting main address:

Fatal error: Out of memory (allocated 6029312) (tried to allocate 7680 bytes) in /zp-core/functions-i18n.php on line 563

or when visiting Zenphoto backend:

Fatal error: Out of memory (allocated 3670016) (tried to allocate 491520 bytes) in /zp-core/admin-functions.php on line 1550

After disabling ImageMagick via phpMyAdmin normal operation resumes.

Here is system info:

I'd like to ask to snipe this URL from this message after visiting

Is it the case of not enough memory provided to ImageMagick or perhaps perhaps it is too old and has some issues in this release? Or something else?

Thank you!




ImageMagick and "Fatal error: Out of memory" - acrylian - 2012-04-11

The imagick version should be fine. The error seems to indicate that you don't have enough memory to process the images you want to. Try using smaller images dimensionwise.




ImageMagick and "Fatal error: Out of memory" - makar - 2012-04-11

Currently this site has no images managed by Zenphoto at all. So this error occurs simply by ImageMagick being enabled.




ImageMagick and "Fatal error: Out of memory" - acrylian - 2012-04-11

Then it might be not configured/installed correctly. In that case you need to ask your host.




ImageMagick and "Fatal error: Out of memory" - makar - 2012-04-11

I've contacted the host and they say that everything on their side is as it should be, and instead suggested to check the script's compatibility with PHP 5.3.

I'm not sure what else to try... Could you suggest any procedures or steps that can help in examining this issues further?




ImageMagick and "Fatal error: Out of memory" - acrylian - 2012-04-11

Try uploading an image. I have not seen this behaviour. I however mostly use GDlib as my local server package does not have Imagick but my live server has and I have not seen this.

Zenphoto is php 5.3 compatible as that is what I am developing on for quite a while.




ImageMagick and "Fatal error: Out of memory" - makar - 2012-04-11

I have uploaded a single image, but the effect when switching to imagick is the same.

Could this be an issue with the LiteSpeed web server that the host uses? There was an upgrade recently on the host, switch from Apache and PHP upgrade, before which imagick worked perfectly together with Zenphoto.




ImageMagick and "Fatal error: Out of memory" - acrylian - 2012-04-11

Might be, we only test Apache.




ImageMagick and "Fatal error: Out of memory" - makar - 2012-04-11

I see. I guess then I'll be looking for a hoster with Apache after my current contract is finished. Taking a quick peek on the "Web Hosting Talk" at shared hosting offers however leaves with me with impression (since my last visit there) that many have now adopted LiteSpeed...




ImageMagick and "Fatal error: Out of memory" - acrylian - 2012-04-11

Honestly, I don't know any host that uses litespeed but that might be different over the "pond"...