1

I'm able to upload images correctly to the server. I can see the thumbnail and view the larger image inside the control panel on the Assets page. However, the front-end image transforms result in a 500 error.

2

The fix (for my project) was to enable the PHP output_buffering directive.

I added this to the account specific php.ini file for the hosting account.

output_buffering = On

This from the web hosts docs to explain why this fix worked:

*"Doing a header redirect requires outputting an HTTP header with the response. The problem is, if PHP has already begun outputting the body of the document, it cannot then output a header because the headers ended when the body started.

Output buffering prevents PHP from outputting any part of the body of the document until the output buffer is flushed (or PHP exits). This allows you to output headers at any time."*
http://kb.site5.com/php/how-to-repair-headers-already-sent-php-errors/


Another thing to try is add 'imageDriver' => 'gd, to your config file. This helped me with issues on a different server.
https://docs.craftcms.com/v2/config-settings.html#assets

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.