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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

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

Post 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.
Last edited by urheat on Mon Jun 10, 2013 1:26 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: CGSmartImage: suddenly "Could not find image"

Post 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!!
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

Re: CGSmartImage: suddenly "Could not find image"

Post 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?
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

Re: CGSmartImage: suddenly "Could not find image"

Post 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 :)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: CGSmartImage: suddenly "Could not find image"

Post by Rolf »

urheat wrote:Now it works!
Cool!. Please http://forum.cmsmadesimple.org/viewtopi ... =7&t=22304
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”