<p><code>/mysite/img/posts/</code> is an absolute path pointing to the root of your drive mount.</p>

<p>You probably just need to make it relative.  i.e. either <code>mysite/img/posts</code> or <code>./mysite/img/posts</code>.</p>

CC BY-SA 3.0
2017-08-09T20:13:56.350Z
Nope.  I have tried every which freaking way.
Hellyar
CC BY-SA 3.0
2017-08-09T20:29:55.130Z
Incredible.  It was a freaking period.   `./img/posts/` worked.  Held up by a freaking "."  Ugh.  Thanks.
Hellyar
CC BY-SA 3.0
2017-08-09T20:03:26.093Z
2017-08-09T20:03:26.093Z
Brad Bell
<p>Transformed Images are failing to load with a <code>404 error</code>  For example: </p>

<p><code>http://mysite.com/index.php?p=cpresources/transforms/382&amp;x=v0nGRK3Qr</code> </p>

<p>This happened after I swapped the db.  So, everything had previously been working.  </p>

<p>Also:  </p>

<ul>
<li><p>My images reside <code>/public_html/mysite/img/posts/</code></p></li>
<li><p>BUT, <code>Update Asset Indexes</code> generates <code>The path of your source "Main Post Image" appears to be invalid</code> And, none of the images load when I try to view Assets in cp.  </p></li>
<li><p>I can access the image from the <code>public URL</code> to the assets is <code>http://www.mysite.com/img/posts</code>.  And, I can access the original uploaded images here. </p></li>
<li><p>I <strong>assume</strong> the path to my images (which I understand can be different from the URL) is the problem. </p></li>
<li><p>Path is current set to /mysite/img/posts/'.  I have tried multiple permutations - nothing seems to work.</p></li>
</ul>

<p>Help/Thanks</p>

CC BY-SA 3.0
2017-08-09T13:42:52.730Z
I tried adding `generateTransformsBeforePageLoad` to `general.php`.   But, I still get a 404 error and the image transforms do not load.
Hellyar
CC BY-SA 3.0
2017-08-09T13:53:11.660Z
Oh, I tried a fresh re-install of Craft and the db.
Hellyar
<assets><control-panel><php>
404 Error on Image Transforms
# 404 Error on Image Transforms

(Asked by: username_0 on 2017-08-09)

Transformed Images are failing to load with a `404 error` For example:

`http://mysite.com/index.php?p=cpresources/transforms/382&x=v0nGRK3Qr`

This happened after I swapped the db. So, everything had previously been working.

Also:

* My images reside `/public_html/mysite/img/posts/`
* BUT, `Update Asset Indexes` generates `The path of your source "Main Post Image" appears to be invalid` And, none of the images load when I try to view Assets in cp.
* I can access the image from the `public URL` to the assets is `http://www.mysite.com/img/posts`. And, I can access the original uploaded images here.
* I **assume** the path to my images (which I understand can be different from the URL) is the problem.
* Path is current set to /mysite/img/posts/'. I have tried multiple permutations - nothing seems to work.

Help/Thanks

**Tags:** assets, control-panel, php

> **Comments:**
> **username_0**: I tried adding `generateTransformsBeforePageLoad` to `general.php`.   But, I still get a 404 error and the image transforms do not load.  
> **username_0**: Oh, I tried a fresh re-install of Craft and the db.  

---

## 1 answers

### Answer by username_1 on 2017-08-09. Score: 2 | Accepted answer

`/mysite/img/posts/` is an absolute path pointing to the root of your drive mount.

You probably just need to make it relative. i.e. either `mysite/img/posts` or `./mysite/img/posts`.

> **Comments:**
> **username_0**: Nope.  I have tried every which freaking way.  
> **username_0**: Incredible.  It was a freaking period.   `./img/posts/` worked.  Held up by a freaking "."  Ugh.  Thanks.  

---

