Page 1 of 1

[Solved]CGSmartImage/Product Module: error message

Posted: Fri Sep 20, 2013 6:35 am
by jasnick
Using 1.11.8 and modules up to date
Product Module and CGSmartImage - site selling motorcycles.
The summary page has a single thumbnail for each bike. The detail page has details of a bike and 10 photos of the bike. When a summary page thumbnail is clicked the detail page has all 10 thumbnails on display at once and when the first is clicked - or any of them for that matter - the lightbox appears and Next and Prev can be used to scroll though them all.
Have got this working in a test directory using Detail Template

Code: Select all

 
 <li><div>
 <a href="{CGSmartImage src1=$entry->file_location src2=$entry->fields.photo1->value width='900' notag=1 noembed=1}">
      {CGSmartImage src1=$entry->file_location src2=$entry->fields.photo1->value width='180'}
    </a></div></li>

for photo1 though photo10 inside

Code: Select all

 <div id="imagebox"><ul class="img"></ul></div>
Currently the site isn't using CGSmartImage and the images are called in the usual way. I had to resize the images before uploading them via the Products module but want to use CGSmartImage so the editor can upload his camera photos as is. I understand I will need to reload all the bike images in order for them to be uploaded with CGSmartImage.
I wanted to test it out so replaced the Detail Template with the one I used in the testing directory and added a new bike. However, none of the bikes show on their detail pages. Not surprised at this but I thought perhaps the newly uploaded one would show but it doesn't. Checking Page Source says:

Code: Select all

<a href="Could not find a file at: http://sitename /uploads/Products/product_25/ 
even though product_25 is the new bike and all images (large ones and thumbnails) are indeed located where they should be.
Is it just a case of deleting the lot and starting again or am I missing something?
Thanks

Re: CGSmartImage/Product Module: error message

Posted: Sat Sep 21, 2013 4:01 am
by jasnick
Ok - I deleted all the bikes and added a new one. Still getting the
"cannot find file" error message even though the images are where they are supposed to be.

I cannot understand why the templates (summary and detail) are working in a test directory but not in the real site when I copied them exactly.

What am I missing?
Thanks

Re: CGSmartImage/Product Module: error message

Posted: Sat Sep 21, 2013 6:20 am
by Rolf
Check the path settings in the CGSI module admin

Re: CGSmartImage/Product Module: error message

Posted: Sat Sep 21, 2013 6:53 am
by jasnick
Rolf wrote:Check the path settings in the CGSI module admin
Thanks Rolf. Do you mean Calguys Smart Image Toolkit?
This says: Cache Path: uploads/_CGSmartImage
Image Url Prefix: http://mysitename.com.au
Does the URL above account for the cache path? ie. (uploads/_CGSmartImage):No

Should I be adding anything more to the Image url prefix?

Thanks

Another thing I've noticed, when I check Page Source of the Summary page, there is no metadata above the </__body class="{$page_alias}"> tag even though it is in the template for the page.

Re: CGSmartImage/Product Module: error message

Posted: Mon Sep 23, 2013 2:17 am
by jasnick
I think I have finally found the difference between the test directory and the new site.
In the test directory there is a folder in Uploads called _CGSmartImage.
This folder is missing from Uploads in the new site!
Will ask the question in a new thread.

Re: [Solved]CGSmartImage/Product Module: error message

Posted: Wed Sep 25, 2013 6:04 am
by jasnick
I have marked this [Solved] though it isn't because I am dealing with it in another thread.
http://forum.cmsmadesimple.org/viewtopi ... =7&t=68005