ImageMagick and "Fatal error: Out of memory"

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 <link removed by admin>

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!

Comments

  • acrylian Administrator, Developer
    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.
  • makar Member
    Currently this site has no images managed by Zenphoto at all. So this error occurs simply by ImageMagick being enabled.
  • acrylian Administrator, Developer
    Then it might be not configured/installed correctly. In that case you need to ask your host.
  • makar Member
    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?
  • acrylian Administrator, Developer
    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.
  • makar Member
    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.
  • acrylian Administrator, Developer
    Might be, we only test Apache.
  • makar Member
    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...
  • acrylian Administrator, Developer
    Honestly, I don't know any host that uses litespeed but that might be different over the "pond"...
Sign In or Register to comment.