1

Having some odd issues in 2.5 with image transforms (apparently). They are defined in the template, and saved to a Rackspace Cloud Files container. Often, we are getting a 500 Internal Server Error when loading the page or doing a live preview, and nothing about the error is logged anywhere. Trying to figure out how to troubleshoot this. Happens on our production (apache) server, not seeing it on my dev/MAMP machine.

We do have this set in general config:

'generateTransformsBeforePageLoad' => true,

The server is running Ubuntu 14.04 and has ImageMagick 6.7.7-10 2014-03-06 Q16

The dev machine (which will transform the images just fine) is running MAMP and does NOT have ImageMagick installed (it does use GD though).

  • Are you hosted with Rackspace as well? Is it a Craft generated error or a "plain" one? Could be PHP running out of memory or permissions issue, hard to say. But it should be logged in Apache's error log (or PHP FPM) somewhere, you may have to dig around a bit, that'll give you the file name that's causing it. – RitterKnight Dec 1 '15 at 18:41
  • Yeah the site is also Rackspace (Cloud Server). Don't think it's a permissions issue since the error is sporadic. I'm going to try setting 'phpMaxMemoryLimit' => '1024M', – Chad W Dec 1 '15 at 21:28
  • If it's not in Craft's log files, then it's an Apache generated error. Have you checked the Apache error logs? – Brad Bell Dec 1 '15 at 22:59
  • Nope, nothing in apache error log. This is like a needle in a haystack. – Chad W Dec 2 '15 at 2:36
  • The kicker is, it seems to only happen on CERTAIN image assets. And we can't tell what is so different about them. File size doesn't seem to be an indicator. The original dimensions are consistent with other images using the same transforms without issue. Even tried re-uploading the image with a different name, after re-saving from photoshop -- the image transform still fails for it. – Chad W Dec 2 '15 at 3:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.