Unable to open: Foo for writing: File too large in...

Hello,

I am having problems generating Cache images at my website. Currently I have

http://www.wallpapersfordesktopfree.com/woof/ Most of these images cache correctly and show up. They are various sizes and dimensions. As you go further in the album,

http://www.wallpapersfordesktopfree.com/woof/page/32

Half of the images load. However, when clicking on the main image, it still loads. I looked through the logs and Am getting this error:

{Wed, 21 Nov 2012 21:08:40 GMT} Zenphoto v1.4.3.4[10988]
Backtrace: WARNING: imagejpeg() [function.imagejpeg]: Unable to open '/var/chroot/home/content/42/10071742/html/cache/woof/500_220_thumb.jpg' for writing: File too large in /home/content/42/10071742/html/zp-core/lib-GD.php on line 99
imagejpeg called
from zp_imageOutput (lib-GD.php [99])
from cacheImage (functions-image.php [424])
from i.php [216]
{Wed, 21 Nov 2012 21:08:40 GMT}
Backtrace: WARNING: imagejpeg() [function.imagejpeg]: Unable to open '/var/chroot/home/content/42/10071742/html/cache/woof/497_220_thumb.jpg' for writing: File too large in /home/content/42/10071742/html/zp-core/lib-GD.php on line 99
imagejpeg called
from zp_imageOutput (lib-GD.php [99])
from cacheImage (functions-image.php [424])
from i.php [216]
{Wed, 21 Nov 2012 21:08:40 GMT}
Backtrace: WARNING: imagejpeg() [function.imagejpeg]: Unable to open '/var/chroot/home/content/42/10071742/html/cache/woof/498_220_thumb.jpg' for writing: File too large in /home/content/42/10071742/html/zp-core/lib-GD.php on line 99
imagejpeg called
from zp_imageOutput (lib-GD.php [99])
from cacheImage (functions-image.php [424])
from i.php [216]
{Wed, 21 Nov 2012 21:08:40 GMT}
Backtrace: WARNING: imagejpeg() [function.imagejpeg]: Unable to open '/var/chroot/home/content/42/10071742/html/cache/woof/501_220_thumb.jpg' for writing: File too large in /home/content/42/10071742/html/zp-core/lib-GD.php on line 99
imagejpeg called
from zp_imageOutput (lib-GD.php [99])
from cacheImage (functions-image.php [424])
from i.php [216]
{Wed, 21 Nov 2012 21:08:40 GMT}
Backtrace: WARNING: imagejpeg() [function.imagejpeg]: Unable to open '/var/chroot/home/content/42/10071742/html/cache/woof/502_220_thumb.jpg' for writing: File too large in /home/content/42/10071742/html/zp-core/lib-GD.php on line 99
imagejpeg called
from zp_imageOutput (lib-GD.php [99])
from cacheImage (functions-image.php [424])
from i.php [216]
{Wed, 21 Nov 2012 21:08:41 GMT}
Backtrace: WARNING: imagejpeg() [function.imagejpeg]: Unable to open '/var/chroot/home/content/42/10071742/html/cache/woof/504_220_thumb.jpg' for writing: File too large in /home/content/42/10071742/html/zp-core/lib-GD.php on line 99
imagejpeg called
from zp_imageOutput (lib-GD.php [99])
from cacheImage (functions-image.php [424])
from i.php [216]
{Wed, 21 Nov 2012 21:08:41 GMT}
Backtrace: WARNING: imagejpeg() [function.imagejpeg]: Unable to open '/var/chroot/home/content/42/10071742/html/cache/woof/506_220_thumb.jpg' for writing: File too large in /home/content/42/10071742/html/zp-core/lib-GD.php on line 99
imagejpeg called
from zp_imageOutput (lib-GD.php [99])
from cacheImage (functions-image.php [424])
from i.php [216]
{Wed, 21 Nov 2012 21:08:41 GMT}
Backtrace: WARNING: imagejpeg() [function.imagejpeg]: Unable to open '/var/chroot/home/content/42/10071742/html/cache/woof/511_220_thumb.jpg' for writing: File too large in /home/content/42/10071742/html/zp-core/lib-GD.php on line 99
imagejpeg called
from zp_imageOutput (lib-GD.php [99])
from cacheImage (functions-image.php [424])
from i.php [216]
{Wed, 21 Nov 2012 21:08:41 GMT}
Backtrace: WARNING: imagejpeg() [function.imagejpeg]: Unable to open '/var/chroot/home/content/42/10071742/html/cache/woof/505_220_thumb.jpg' for writing: File too large in /home/content/42/10071742/html/zp-core/lib-GD.php on line 99
imagejpeg called
from zp_imageOutput (lib-GD.php [99])
from cacheImage (functions-image.php [424])
from i.php [216]
{Wed, 21 Nov 2012 21:08:41 GMT}
Backtrace: WARNING: imagejpeg() [function.imagejpeg]: Unable to open '/var/chroot/home/content/42/10071742/html/cache/woof/509_220_thumb.jpg' for writing: File too large in /home/content/42/10071742/html/zp-core/lib-GD.php on line 99
imagejpeg called
from zp_imageOutput (lib-GD.php [99])
from cacheImage (functions-image.php [424])
from i.php [216]
{Wed, 21 Nov 2012 21:08:41 GMT}
Backtrace: WARNING: imagejpeg() [function.imagejpeg]: Unable to open '/var/chroot/home/content/42/10071742/html/cache/woof/512_220_thumb.jpg' for writing: File too large in /home/content/42/10071742/html/zp-core/lib-GD.php on line 99
imagejpeg called
from zp_imageOutput (lib-GD.php [99])
from cacheImage (functions-image.php [424])
from i.php [216]
{Wed, 21 Nov 2012 21:08:42 GMT}
Backtrace: NOTICE: Undefined variable: zpskel_social in /home/content/42/10071742/html/themes/zpskeleton/album.php on line 66
include called
from index.php [92]
{Wed, 21 Nov 2012 21:08:42 GMT}
Backtrace: NOTICE: Undefined variable: prev in /home/content/42/10071742/html/themes/zpskeleton/album.php on line 80
include called
from index.php [92]
{Wed, 21 Nov 2012 21:08:42 GMT}
Backtrace: NOTICE: Undefined variable: prev in /home/content/42/10071742/html/themes/zpskeleton/album.php on line 81
include called
from index.php [92]

Most of the file sizes are under 500k, and images that are bigger than them have been properly cached. Any ideas on the problem?

Comments

  • Ok, so it takes a lot of memory. But half of my pictures with bigger resolution/size have been properly cached. This also does not really go into a work around unless I read it incorrectly. Could you suggest a fix for this?
  • acrylian Administrator
    It is not only the dimensions, but also image complexity. A image in just one plain color requires also less memory than a photo with losts of different things. Fixes:
    a) Try to upgrade your server with memory
    b) Try Imagick if you can
    c) Make the images smaller
  • Sounds good I will try it out. Called my hosting service and they have Image Magick installed on the server. I have downloaded the imagick-3.1.0RC2 .tar file and have extracted it. This is probably a dumb question but what do you do with it now! >:)

    EDIT:

    Image Magick Correctly Installed:

    http://www.wallpapersfordesktopfree.com/test.php

    Still cannot get Imagick to be seen by Zenphoto
  • acrylian Administrator
    Your server needs to have Imagick installed. That is a php bridge to image magick. Otherwise you cannot use it. Your host has to do that for you if you cannot access the server itself.
  • Thank you! I will check :)
  • I have been banging my head on the wall over this and still have had no luck. All I need are these thumbnails to be created. On entire albums images with twice the dimensions are working perfectly and on other albums it doesnt work at all. Even just trying to cache one picture doesn't work. It seems silly that a 1280x1024 image is killing the image processor, but I am having such mixed results I just want to pull my hair out!

    I don't care how long it takes (as in set it and forget it while it caches) I just need it to work!

    Image Magick is installed on the server but have no idea how to get Imagick to work. I have looked on the website but I don't understand it and not having access to the server makes it difficult to mess around with it.

    I really don't want to look for some other CMS because of this problem I am having! I like this one :)
  • acrylian Administrator
    Regarding Imagick you need to ask your host to install it. You cannot install it like Zenphoto, it must be installed natively (binary) as an extension to PHP on the server itself.

    If you like open a ticket on the bugtracker and attach one of the images failing. If we can reproduce the failure we probably can help more. Maybe also try to resave the image with your image editor. Sometimes corrupt metadata can be the cause as well. Hard to say.
  • ticket submitted. Let me know if you need any other info.
Sign In or Register to comment.