6 replies [Last post]
mheacock's picture
Offline
Joined: 02/03/2010
Juice: 42
Was this information Helpful?

Ubercart is looking for the image files in

.\root\images\imagecache\products

but the images are actually uploaded to

.\root\images\imagefield_thumbs\products

I can't figure out why, of if there is a setting I am missing somewhere.

M.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Imagecache Problem

I bet your original file is actually in .\root\images\products. Both Image Field and ImageCache make smaller copies of the file you upload for display in various places.

That's if you uploaded the file through the edit form, though. If you used FTP to upload the image manually, you're probably confusing the modules.

The imagecache path is a little confusing because there appears to be something missing. There should be a folder for the particular preset that was requested. .\root\images\imagecache\uc_thumbnail\products for example. If you actually have an ImageCache preset called "products", then that would explain things.

mheacock's picture
Offline
Joined: 02/03/2010
Juice: 42
Re: Re: Imagecache Problem

I use the edit form. And yes, the original file is in ./root/images/products (I used the edit form to upload the images). That works fine. I guess I miscommunicated. The system created thumbnail is in .\root\images\imagefield_thumbs\products, but the system is looking for it in .\root\images\imagecache\products.

Where do I look for this ImageCache preset? Or ImageField preset?

nwkeeley's picture
Offline
Joined: 03/14/2010
Juice: 38
Same issue

Yeah I am having the same problem. I have spent probably a good 5-6 hours today researching this problem and I think a lot of people are having this problem.

When we are uploading the image through the product content type the imagefield is not uploading it to the correct preset folder.
Is there anyway to tell UberCart / imageField which preset to use? so it uploads the image to the right preset folder?

OR

Can we somehow change UberCart so it looks for all the images in /files/imagefield_thumbs/

mrtoner's picture
Offline
Joined: 12/26/2007
Juice: 71
Re: Same issue

This is old, but when I ran across this I thought an answer (of sorts) would be helpful to many people who continue to be confused by ImageCache.

imagefield_thumbs is a directory of images created by ImageField to be used on node edit pages (a thumbnail of the image you just uploaded). It's not meant for use by any other module.

ImageField uploads your images to the directory specified for the field. It then creates a thumbnail (again, only for use on node/edit) in the image field_thumbs directory.

Ubercart provides some default presets to ImageCache when that module is enabled. Ubercart "tells" ImageCache to generate images of various sizes *on-the-fly* as needed. ImageCache generates these new images from the originals uploaded by ImageField -- *not* the ImageField thumbnails.

If you need to change the sizes generated by ImageCache, you can find the presets at admin/build/imagecache. You cannot (and do not want to) change the preset name; this would break Ubercart's integration with ImageCache.

miked2004's picture
Offline
Joined: 04/14/2010
Juice: 3
Solved for me

I was running into a similar issue. The uc_thumbs were not showing up for me on a staging site but on a local setup it worked. Ended up being that on the staging site where images were not working drupal was installed in a sub-folder from the main web root. So my path to the images was incorrect, thus causing the problem. So I added node-product.tpl.php to my themes folder and adjusted the path of the images and all is well.

make-online-shop's picture
Offline
Joined: 01/01/2011
Juice: 217
Ubercart showing product_list image in catalog

Ubercart showing product_list image in catalog instead of catalog image

Hi,

My shop is showing

/files/imagecache/product_list/CIMG6019.JPG

on my catalog page, but it should be showing

/files/imagecache/catalog/CIMG6019.JPG

(image in catalog folder is created after i force the browser to show site.com/files/imagecache/catalog/CIMG6019.JPG)

Do you have any idea why it happens ?

Thank you in advance Smiling