Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-15T17:41:01.033Z
Answers.LastActivityDate: 2015-12-15T17:41:01.033Z
Answers.UserDisplayName: Fuglsetrampen
Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-11T07:46:49.930Z
Answers.Text: 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
Answers.UserDisplayName: Fuglsetrampen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-11T07:52:04.390Z
Answers.Text: 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).
Answers.UserDisplayName: Fuglsetrampen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-11T00:50:02.250Z
Answers.LastActivityDate: 2015-12-11T19:04:12.743Z
Answers.LastEditDate: 2015-12-11T19:04:12.743Z
Answers.UserDisplayName: Brad Bell
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-12T19:44:30.927Z
Comments.Text: 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...
Comments.UserDisplayName: RitterKnight
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-13T20:35:24.677Z
Comments.Text: `[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 :)
Comments.UserDisplayName: Fuglsetrampen
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-13T21:25:09.853Z
Comments.Text: 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.
Comments.UserDisplayName: RitterKnight
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-14T07:44:26.587Z
Comments.Text: 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_
Comments.UserDisplayName: Fuglsetrampen
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-14T15:54:57.843Z
Comments.Text: 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.
Comments.UserDisplayName: RitterKnight
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-14T15:55:49.817Z
Comments.Text: Are you running CentOS/Fedora with ``SELinux`` on by chance? You might be hitting a policy there as well...
Comments.UserDisplayName: RitterKnight
Tags: <assets><image-transforms><craft-pro><craft-features>
Title: Image transforms return cpresources URL in Craft Pro 2.5.2754
ThreadText: # 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](https://craftcms.stackexchange.com/questions/827/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 %}
      <ul class="entry-list clear">
          {% for entry in entries %}
              {% set entryUrl = entry.url %}
              {% set picture = entry.pictures.first() %}
              <li>
                  <div class="entry-container">
                          {% if picture %}
                          {% set picData = craft.norsok.getPicData(picture) %}
                          {% set maxWidth = picture.getWidth('frontpageNewsPicture') %}
                          <a class="entry-image" href="{{ entryUrl }}">
                              <img class="entry-picture"
                                       src="{{ picture.getUrl('frontpageNewsPicture') }}"
                                       style="max-width: {{ maxWidth }}px;"
                                       title="{{ picData['title'] }}"
                                       alt="{{ picData['altText'] }}" />
                          </a>
                      {% endif %}
                      <h3 class="entry-name">
                          <a href="{{ entryUrl }}">{{ entry.title }}</a>
                      </h3>
                      <h4 class="entry-ingress">
                          <a href="{{ entryUrl }}">{{ entry.ingress }}</a>
                      </h4>
                  </div>
              </li>
          {% endfor %}
      </ul>
  {% endif %}
  
  ```
  
  **this is what the page-source looks like**
  
  ```
  <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)">
  
  ```
  
  **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 username_2, 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).  
  
  ---
  
  