Page 1 of 1

[solved] CGSmartImage: suddenly "Could not find image"

Posted: Sat Jun 08, 2013 8:54 pm
by urheat
I just upgraded to 1.11.7 and to latest CGSmartImage. The PHP is 5.3.24, no errors in the log and I've cleared the cache (both CMSMS and CGSmartImage).

But... SmartImages won't show anymore. In the HTML code there is following message:

Code: Select all

<b>Debug: (0,215426) - (usage: 10252476) - (peak: 10494152)</b>
<pre>http://visavuori.com/uploads/news/id13/Pallo-ohdake.jpg</pre></div>
<br />
<b>Notice</b>:  Could not find a file at: http://visavuori.com/uploads/news/id13/Pallo-ohdake.jpg in <b>/biz/1/visav/html/modules/CGSmartImage/action.default.php</b> on line <b>44</b><br />
The strange thing is, that the image is there: http://visavuori.com/uploads/news/id13/Pallo-ohdake.jpg

Don't know what to try next.

Re: CGSmartImage: suddenly "Could not find image"

Posted: Sat Jun 08, 2013 10:15 pm
by Rolf
What CGSI-tag do you use in the News template?
Is the CGSI folder writeable?


Ps. It works for me at http://www.visavuori.com/news/13/19/Lehtiae-lautasella
You might clear browser cache!!

Re: CGSmartImage: suddenly "Could not find image"

Posted: Sun Jun 09, 2013 5:23 am
by urheat
Thanks Rolf!

CGSI-tag in the News template

Code: Select all

{capture assign='kuva'}http://visavuori.com/uploads/news/id{$entry->id}/{$entry->fields.Kuva->value}{/capture}  

<img src="{CGSmartImage src=$kuva notag=1 noembed=1 quality=90 filter_croptofit="304,223"}">
CGSI folder is writeable. I even didn't check, but it appears to work fine in the detail page, but not in the summary page (it used to work, but after updating CMSMS and CGSmartImage, it stopped).

Any other ideas?

Re: CGSmartImage: suddenly "Could not find image"

Posted: Sun Jun 09, 2013 5:27 am
by urheat
Now it works! I changed

Code: Select all

{capture assign='kuva'}http://visavuori.com/uploads/news/id{$entry->id}/{$entry->fields.Kuva->value}{/capture} 
to

Code: Select all

{capture assign='kuva'}uploads/news/id{$entry->id}/{$entry->fields.Kuva->value}{/capture} 

Hopefully this helps some else too :)

Re: CGSmartImage: suddenly "Could not find image"

Posted: Sun Jun 09, 2013 11:27 am
by Rolf
urheat wrote:Now it works!
Cool!. Please http://forum.cmsmadesimple.org/viewtopi ... =7&t=22304