Page 1 of 1

Advice on how to debug a CGSmartImage problem [SOLVED]

Posted: Sun Nov 02, 2014 5:18 pm
by wmdvanzyl
Hi Guys.

I have an issue that popped up recently on the site humm.co.za
I move the site from one server to another, but nothing should have changed to the site itself. Somewhere something went wrong and i need to debug it. It is off at the moment as i try to debug this issue. I can post messages here but i can't turn it on until the issue is resolved, unfortunately.

In short, CGSmartImage is producing a 'null' string for my slider. It used to work, but clearly i changed something... Here is the template:

Code: Select all

<div id="slider">{foreach from=$images item=image}
<!-- {* <img src="{$image->file|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" title="{$image->comment}" />  *} -->
{CGSmartImage src=$image->file filter_resize='c,950,245' alt=$image->titlename title=$image->comment}
{/foreach}     
</div>
I primarily use CGSmartImage here for resizing. If i just use the img tags, then the images display. Even just using

Code: Select all

{CGSmartImage src=$image->file}
produces null values.

I have turned on debugging in the config file and the module's debugging setting, but i don't see any error. I am not sure how to go about debugging this.

Any advice will be appreciated.

Re: Advice on how to debug a CGSmartImage problem

Posted: Sun Nov 02, 2014 6:36 pm
by velden
Note that CGSI stores a value in one of its settings. So if path and/or url changed have a look at Extensions -> Calguys Smart Image Toolkit -> General tab.

How did you move the side? Using FTP?
You might want to create a checksum file of your 'old' install and compare it with the 'new' one. Site Admin -> System Verification.

Re: Advice on how to debug a CGSmartImage problem

Posted: Sun Nov 02, 2014 8:19 pm
by wmdvanzyl
velden wrote:Note that CGSI stores a value in one of its settings. So if path and/or url changed have a look at Extensions -> Calguys Smart Image Toolkit -> General tab.
Thanks. That field is set to www.humm.co.za/uploads
Do you think it should rather be a path along the lines of /home/humm/public_html/uploads ?
velden wrote: How did you move the side? Using FTP?
You might want to create a checksum file of your 'old' install and compare it with the 'new' one. Site Admin -> System Verification.
I moved from a few shared hosting packages to a reseller package and my host moved it for me.

Re: Advice on how to debug a CGSmartImage problem

Posted: Sun Nov 02, 2014 8:22 pm
by velden
In my case 'Cache path' is set to 'uploads/_CGSmartImage' and 'image url prefix' to and url starting with 'http://'

Re: Advice on how to debug a CGSmartImage problem

Posted: Sun Nov 02, 2014 8:37 pm
by wmdvanzyl
velden wrote:In my case 'Cache path' is set to 'uploads/_CGSmartImage' and 'image url prefix' to and url starting with 'http://'
My chache path is the same as yours and i have added the http:// for good measure.

I turned off the CMSMS debudding (as i couldn't get anything from it in this case and focussed on CGSI's error surpression.

I found an error about finfo_open function being missing. This makes a lot of sens, as i have had this issue before and had to ask my host to enable it. Moving servers could very well have landed on a server with that PHP function turned off.

Re: Advice on how to debug a CGSmartImage problem

Posted: Sun Nov 02, 2014 9:25 pm
by paulbaker
I guess you ought to post your system info in case that gives any clues.
http://docs.cmsmadesimple.org/troublesh ... nformation

Re: Advice on how to debug a CGSmartImage problem

Posted: Mon Nov 03, 2014 7:56 am
by wmdvanzyl
Host enabled finfo_open PHP function and voila! Working!

Thanks to all for the info and to CGSI for the "dont surpress errors" ability