<p>A long shot, but if it is indeed a path problem, this has seemed to help me keep my path(s) straight. I my <code>config.php</code> file, I'll set a parameter for <code>environmentVariables</code> like this:</p>

<pre><code>...

'.dev' =&gt; array(
    'devMode' =&gt; true,
    'siteUrl' =&gt; 'http://mysite.dev/',
    'environmentVariables' =&gt; array(
        'basePath' =&gt; $_SERVER['DOCUMENT_ROOT'] . '/',
        'baseUrl' =&gt; 'http://mysite.dev/',
    )
)

...
</code></pre>

<p>Then when you are defining your asset sources, you can use this for "File System Path":</p>

<pre><code>{basePath}assets/photos/products/
</code></pre>

<p>Then for URL try this:</p>

<pre><code>/assets/photos/products
</code></pre>

CC BY-SA 3.0
2016-02-17T03:12:14.263Z
2016-02-17T03:12:14.263Z
Damon
<p>I have two assets sources, Slideshow and Products. I have six Image Transforms.</p>

<p>On the home page I'm using a structure channel to play a simple slideshow and I'm using 3 transforms and all is working fine.</p>

<p>This code works fine:</p>

<pre><code>{{ entry.productPhotos.first().geturl() }}
</code></pre>

<p>But this code throws an error: </p>

<pre><code>{{ entry.productPhotos.first().geturl('productSlide') }}
</code></pre>

<p><a href="https://i.sstatic.net/rvAiZ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/rvAiZ.png" alt="error message"></a></p>

<p>If you go on my assets source path, the file is uploaded but the transform folder doesn't exist.</p>

<p>I tried clearing cache, deleting records in <code>craft_assettransformindex</code>, and most of the things suggested here, but with no luck. The weird thing is that the other Structure with the assets Slideshow works fine so it couldn't be something with the paths.</p>

<p>I'm using <code>'generateTransformsBeforePageLoad' =&gt; true</code>, in my <code>config/general.php</code> file.</p>

<p>You can see on my phpMyAdmin screenshot that the filename is NULL in the table <code>craft_assettransformindex</code> but all the other transforms for the slideshow are there:</p>

<p><a href="https://i.sstatic.net/9te54.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9te54.png" alt="db row"></a></p>

CC BY-SA 3.0
2016-02-17T00:30:24.093Z
Hi Dimitrios, welcome to Stack Exchange. Hope you don't mind, I cleaned up your post a little. Specifically, I rolled your comment and linked error into the original post, to make it easier for anyone else trying to troubleshoot this same problem. :)
Lindsey D
CC BY-SA 3.0
2016-02-17T00:53:40.883Z
Thanks I couldn't add 2 images because of my reputation which limits me to 1 link per post.
Dimitrios Vogiatzis
CC BY-SA 3.0
2016-02-17T01:01:59.107Z
It was obvious that it was a path problem. I changed the path from assets/photos/products/ to ../assets/photos/products/ and now it's working fine. But could someone explain me why do i needed the ../ since the other assets were working without it? Could it be something to do with the environmental variables? Cheers
Dimitrios Vogiatzis
CC BY-SA 3.0
2016-02-17T01:16:58.243Z
Now I cannot upload images because the path is wrong....
Dimitrios Vogiatzis
<assets><image-transforms><error>
Assets Transform returns "Image cannot be found."
# Assets Transform returns "Image cannot be found."

(Asked by: username_0 on 2016-02-16)

I have two assets sources, Slideshow and Products. I have six Image Transforms.
On the home page I'm using a structure channel to play a simple slideshow and I'm using 3 transforms and all is working fine.
This code works fine:
{{ entry.productPhotos.first().geturl() }}

But this code throws an error: 
{{ entry.productPhotos.first().geturl('productSlide') }}


If you go on my assets source path, the file is uploaded but the transform folder doesn't exist.
I tried clearing cache, deleting records in craft_assettransformindex, and most of the things suggested here, but with no luck. The weird thing is that the other Structure with the assets Slideshow works fine so it couldn't be something with the paths.
I'm using 'generateTransformsBeforePageLoad' => true, in my config/general.php file.
You can see on my phpMyAdmin screenshot that the filename is NULL in the table craft_assettransformindex but all the other transforms for the slideshow are there:

**Tags:** assets, image-transforms, error
> **Comments:**
> **username_1**: Hi Dimitrios, welcome to Stack Exchange. Hope you don't mind, I cleaned up your post a little. Specifically, I rolled your comment and linked error into the original post, to make it easier for anyone else trying to troubleshoot this same problem. :)  
> **username_0**: Thanks I couldn't add 2 images because of my reputation which limits me to 1 link per post.  
> **username_0**: It was obvious that it was a path problem. I changed the path from assets/photos/products/ to ../assets/photos/products/ and now it's working fine. But could someone explain me why do i needed the ../ since the other assets were working without it? Could it be something to do with the environmental variables? Cheers  
> **username_0**: Now I cannot upload images because the path is wrong....  

---

## 1 answers

### Answer by username_2 on 2016-02-17. Score: 4

A long shot, but if it is indeed a path problem, this has seemed to help me keep my path(s) straight. I my config.php file, I'll set a parameter for environmentVariables like this:
...

'.dev' => array(
    'devMode' => true,
    'siteUrl' => 'http://mysite.dev/',
    'environmentVariables' => array(
        'basePath' => $_SERVER['DOCUMENT_ROOT'] . '/',
        'baseUrl' => 'http://mysite.dev/',
    )
)

...

Then when you are defining your asset sources, you can use this for "File System Path":
{basePath}assets/photos/products/

Then for URL try this:
/assets/photos/products


---

