<p>Turns out this had to do with imagemagick (or one of its subpackages) not being compiled in a way that Craft 2.5 thinks fondly of, which we discovered after editing the bootstrap to turn off all custom error-logging.</p>

CC BY-SA 3.0
2015-12-15T17:41:01.033Z
2015-12-15T17:41:01.033Z
Fuglsetrampen
<p>If I load <code>http://norsok.tibe.no/cpresources/transforms/1?x=bptVEjjgx</code>, then I got a 404 instead of a 500, but maybe you've changed something with the transforms so that URL is no longer valid.</p>

<p>The 500 ISE is either coming from Craft (in which case the underlying error message will be in your <code>craft/storage/runtime/logs</code> files or it's coming from your web server (in which case it will be in your web server's error logs).</p>

<p>Once you find that message, that should help you debug why the transform is failing.</p>

CC BY-SA 3.0
2015-12-11T07:46:49.930Z
Hi Brad, and thanks for the reply. I temporarily disabled the reforms yesterday (although I don't understand why that would give a 404 instead of a 500) - but they're re-enabled now.

Been thrawling my Apache-log, and there's absolutely nothing regarding this Craft-installation in it. Will post output from my Craft.log in a separate comment
Fuglsetrampen
CC BY-SA 3.0
2015-12-11T07:52:04.390Z
2015/12/11 07:45:06 [info] [application] [Forced] Starting task GeneratePendingTransforms that has a total of 0 steps.
2015/12/11 07:45:06 [info] [application] [Forced] Finished task 289 (GeneratePendingTransforms).
2015/12/11 07:48:17 [info] [application] [Forced] Starting task GeneratePendingTransforms that has a total of 0 steps.
2015/12/11 07:48:17 [info] [application] [Forced] Finished task 290 (GeneratePendingTransforms).
Fuglsetrampen
CC BY-SA 3.0
2015-12-11T00:50:02.250Z
2015-12-11T19:04:12.743Z
2015-12-11T19:04:12.743Z
Brad Bell
<p>Despite having tried the tips from <a href="https://craftcms.stackexchange.com/questions/827/image-transforms-returning-cpresources-url">Image transforms returning cpresources url</a>, I am still having issues with image-transforms.</p>

<p>I am running Craft Pro 2.5.2754</p>

<p><strong>asset-source details as follows:</strong></p>

<pre><code>Handle: paragraphPictures
Type: Local folder
Path: ./uploads/images/paragraphPictures/
URL: /uploads/images/paragraphPictures/
</code></pre>

<p><strong>image-transform details as follows:</strong></p>

<pre><code>Handle: frontpageNewsPicture
Mode: Crop
Crop Position: Center Center
Width: 492
Height: 348
Quality: Auto
Format: png
</code></pre>

<p><code>'generateTransformsBeforePageLoad' =&gt; true</code> is set in craft/config/general.php</p>

<p><strong>folder-permissions as follows:</strong></p>

<p>public/images including all sub-folders and files are owned by apache:apache (the user that runs the apache service) with 777 rights</p>

<p><strong>template-example</strong></p>

<pre><code>{% if entries|length %}
    &lt;ul class="entry-list clear"&gt;
        {% for entry in entries %}
            {% set entryUrl = entry.url %}
            {% set picture = entry.pictures.first() %}
            &lt;li&gt;
                &lt;div class="entry-container"&gt;
                        {% if picture %}
                        {% set picData = craft.norsok.getPicData(picture) %}
                        {% set maxWidth = picture.getWidth('frontpageNewsPicture') %}
                        &lt;a class="entry-image" href="{{ entryUrl }}"&gt;
                            &lt;img class="entry-picture"
                                     src="{{ picture.getUrl('frontpageNewsPicture') }}"
                                     style="max-width: {{ maxWidth }}px;"
                                     title="{{ picData['title'] }}"
                                     alt="{{ picData['altText'] }}" /&gt;
                        &lt;/a&gt;
                    {% endif %}
                    &lt;h3 class="entry-name"&gt;
                        &lt;a href="{{ entryUrl }}"&gt;{{ entry.title }}&lt;/a&gt;
                    &lt;/h3&gt;
                    &lt;h4 class="entry-ingress"&gt;
                        &lt;a href="{{ entryUrl }}"&gt;{{ entry.ingress }}&lt;/a&gt;
                    &lt;/h4&gt;
                &lt;/div&gt;
            &lt;/li&gt;
        {% endfor %}
    &lt;/ul&gt;
{% endif %}
</code></pre>

<p><strong>this is what the page-source looks like</strong></p>

<pre><code>&lt;img class="entry-picture" src="http://norsok.tibe.no/cpresources/transforms/1?x=bptVEjjgx" style="max-width: 492px;" title="Stengelnematode G  Taksdal" alt="En Stengelnematode (Foto: G. Taksdal)"&gt;
</code></pre>

<p><strong>and this is what my console tells me</strong></p>

<pre><code>GET http://norsok.tibe.no/cpresources/transforms/2?x=bptVEjjgx 500 (Internal Server Error)
GET http://norsok.tibe.no/cpresources/transforms/1?x=bptVEjjgx 500 (Internal Server Error)
</code></pre>

<p><strong>the actual images are located here:</strong></p>

<p><a href="http://norsok.tibe.no/uploads/images/paragraphPictures/img-9889-kraftfor-1-foto-anita-land.jpg" rel="nofollow noreferrer">http://norsok.tibe.no/uploads/images/paragraphPictures/img-9889-kraftfor-1-foto-anita-land.jpg</a>
<a href="http://norsok.tibe.no/uploads/images/paragraphPictures/StengelnematodeG.Taksdal.jpg" rel="nofollow noreferrer">http://norsok.tibe.no/uploads/images/paragraphPictures/StengelnematodeG.Taksdal.jpg</a></p>

<p>At this point I am completely baffled and pray to the Stack Exchange-gods for assistance :)</p>

CC BY-SA 3.0
2015-12-12T19:44:30.927Z
If you ``cd`` into your /uploads/ folder, can you do a ``ls -adl */`` to get a listing of the sub directories and their permissions? I would bet the transforms folder (_ frontpageNewsPicture) underneath the asset source isn't writable...
RitterKnight
CC BY-SA 3.0
2015-12-13T20:35:24.677Z
`[user@server uploads]$ ls -adl */`  
`drwxrwxrwx 2 apache apache 4096 Dec 11 16:12 employeeAttachments/`  
`drwxrwxrwx 5 apache apache 4096 Dec 11 13:34 images/`  
`[user@server uploads]$`  

apache is the user that runs the webserver :)
Fuglsetrampen
CC BY-SA 3.0
2015-12-13T21:25:09.853Z
So there's nothing under images?  According to your setup,  there should be at least a couple folders underneath that folder, including ``paragraphPictures `` and a transforms folder, after Craft creates the transforms. If you do ``chmod -R 755 . && chown -R apache:apache .`` on your uploads folder that should give permissions all the way down. If you're not already running as a superuser, add ``sudo`` to both commands.
RitterKnight
CC BY-SA 3.0
2015-12-14T07:44:26.587Z
Who says there's nothing under images - ls - adl in `uploads` like you asked for won't show you nested sub-folders ? As stated in the original question, _public/images including all sub-folders and files are owned by apache:apache (the user that runs the apache service) with 777 rights_
Fuglsetrampen
CC BY-SA 3.0
2015-12-14T15:54:57.843Z
Oops prob should have ``ls -arl */`` but regardless, just wanted to confirm you had set them properly. It's pretty common in troubleshooting to never assume  someone actually did something properly until proven otherwise.
RitterKnight
CC BY-SA 3.0
2015-12-14T15:55:49.817Z
Are you running CentOS/Fedora with ``SELinux`` on by chance? You might be hitting a policy there as well...
RitterKnight
<assets><image-transforms><craft-pro><craft-features>
Image transforms return cpresources URL in Craft Pro 2.5.2754
# Image transforms return cpresources URL in Craft Pro 2.5.2754

(Asked by: username_0 on 2015-12-10)

Despite having tried the tips from Image transforms returning cpresources url, I am still having issues with image-transforms.
I am running Craft Pro 2.5.2754
asset-source details as follows:
Handle: paragraphPictures
Type: Local folder
Path: ./uploads/images/paragraphPictures/
URL: /uploads/images/paragraphPictures/

image-transform details as follows:
Handle: frontpageNewsPicture
Mode: Crop
Crop Position: Center Center
Width: 492
Height: 348
Quality: Auto
Format: png

'generateTransformsBeforePageLoad' => true is set in craft/config/general.php
folder-permissions as follows:
public/images including all sub-folders and files are owned by apache:apache (the user that runs the apache service) with 777 rights
template-example
{% if entries|length %}
    
        {% for entry in entries %}
            {% set entryUrl = entry.url %}
            {% set picture = entry.pictures.first() %}
            
                
                        {% if picture %}
                        {% set picData = craft.norsok.getPicData(picture) %}
                        {% set maxWidth = picture.getWidth('frontpageNewsPicture') %}
                        
                            
                        
                    {% endif %}
                    
                        {{ entry.title }}
                    
                    
                        {{ entry.ingress }}
                    
                
            
        {% endfor %}
    
{% endif %}

this is what the page-source looks like


and this is what my console tells me
GET http://norsok.tibe.no/cpresources/transforms/2?x=bptVEjjgx 500 (Internal Server Error)
GET http://norsok.tibe.no/cpresources/transforms/1?x=bptVEjjgx 500 (Internal Server Error)

the actual images are located here:
http://norsok.tibe.no/uploads/images/paragraphPictures/img-9889-kraftfor-1-foto-anita-land.jpg
http://norsok.tibe.no/uploads/images/paragraphPictures/StengelnematodeG.Taksdal.jpg
At this point I am completely baffled and pray to the Stack Exchange-gods for assistance :)

**Tags:** assets, image-transforms, craft-pro, craft-features
> **Comments:**
> **username_1**: If you ``cd`` into your /uploads/ folder, can you do a ``ls -adl */`` to get a listing of the sub directories and their permissions? I would bet the transforms folder (_ frontpageNewsPicture) underneath the asset source isn't writable...  
> **username_0**: `[user@server uploads]$ ls -adl */`   `drwxrwxrwx 2 apache apache 4096 Dec 11 16:12 employeeAttachments/`   `drwxrwxrwx 5 apache apache 4096 Dec 11 13:34 images/`   `[user@server uploads]$`    apache is the user that runs the webserver :)  
> **username_1**: So there's nothing under images?  According to your setup,  there should be at least a couple folders underneath that folder, including ``paragraphPictures `` and a transforms folder, after Craft creates the transforms. If you do ``chmod -R 755 . && chown -R apache:apache .`` on your uploads folder that should give permissions all the way down. If you're not already running as a superuser, add ``sudo`` to both commands.  
> **username_0**: Who says there's nothing under images - ls - adl in `uploads` like you asked for won't show you nested sub-folders ? As stated in the original question, _public/images including all sub-folders and files are owned by apache:apache (the user that runs the apache service) with 777 rights_  
> **username_1**: Oops prob should have ``ls -arl */`` but regardless, just wanted to confirm you had set them properly. It's pretty common in troubleshooting to never assume  someone actually did something properly until proven otherwise.  
> **username_1**: Are you running CentOS/Fedora with ``SELinux`` on by chance? You might be hitting a policy there as well...  

---

## 2 answers

### Answer by username_0 on 2015-12-15. Score: 1 | Accepted answer

Turns out this had to do with imagemagick (or one of its subpackages) not being compiled in a way that Craft 2.5 thinks fondly of, which we discovered after editing the bootstrap to turn off all custom error-logging.


---

### Answer by username_2 on 2015-12-11. Score: 0

If I load `http://norsok.tibe.no/cpresources/transforms/1?x=bptVEjjgx`, then I got a 404 instead of a 500, but maybe you've changed something with the transforms so that URL is no longer valid.

The 500 ISE is either coming from Craft (in which case the underlying error message will be in your `craft/storage/runtime/logs` files or it's coming from your web server (in which case it will be in your web server's error logs).

Once you find that message, that should help you debug why the transform is failing.

> **Comments:**
> **username_0**: Hi Brad, and thanks for the reply. I temporarily disabled the reforms yesterday (although I don't understand why that would give a 404 instead of a 500) - but they're re-enabled now.  Been thrawling my Apache-log, and there's absolutely nothing regarding this Craft-installation in it. Will post output from my Craft.log in a separate comment  
> **username_0**: 2015/12/11 07:45:06 [info] [application] [Forced] Starting task GeneratePendingTransforms that has a total of 0 steps. 2015/12/11 07:45:06 [info] [application] [Forced] Finished task 289 (GeneratePendingTransforms). 2015/12/11 07:48:17 [info] [application] [Forced] Starting task GeneratePendingTransforms that has a total of 0 steps. 2015/12/11 07:48:17 [info] [application] [Forced] Finished task 290 (GeneratePendingTransforms).  

---

