Assets Transform returns "Image cannot be found." 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' =&gt; 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:
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' =&gt; array(
    'devMode' =&gt; true,
    'siteUrl' =&gt; 'http://mysite.dev/',
    'environmentVariables' =&gt; array(
        'basePath' =&gt; $_SERVER['DOCUMENT_ROOT'] . '/',
        'baseUrl' =&gt; '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