12 replies [Last post]
Tanjerine's picture
Offline
Bug FinderInternationalizationizerNot KulvikThe other woman.
Joined: 08/31/2007
Juice: 235
Was this information Helpful?

hi! i just resurrected my ubercart dev't setup (clean install for everything) and i noticed that my product and catalog images weren't showing up. i have all the needed image modules (cck, imagecache and imagefield) and they've been setup properly too. well, at least, i clicked the button and it told me that they were setup. Laughing out loud

anyway, i wasn't seeing the product images and catalog images, so i decided to snoop around the files. according to the site source files, my catalog images should be found in /files/imagecache/category/files/ubercart_images/ , my thumbnail product images should be in /files/imagecache/product_list/files/ and the image proper in /files/imagecache/product/files/ . BUT, according to my filesystem, i have the catalog images in /files/ubercart_images , thumbnails are missing and produc images in /files/ .

is there place where i should set the proper directories? i kinda want to have them in one directory for neatness' sake. or am i missing something (its probably just that though...) ? thanks! Smiling

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Scattered Files - Catalog & Product Images

imagecache populates its directory with the resized images as it creates them. It'll take the source images from /files/ and /files/ubercart_images/, process them, and put the results in /files/imagecache/preset/original file path. Check those imagecache directories to see if anything is in them. Also, try going to the Imagecache settings and "flushing" the presets. There might be a problem with an outdated cache.

Tanjerine's picture
Offline
Bug FinderInternationalizationizerNot KulvikThe other woman.
Joined: 08/31/2007
Juice: 235
Re: Re: Scattered Files - Catalog & Product Images

hi lyle, there _is_ something in the imagecache directory -- files/imagecache/product/tmp/tmp_bCCDhV -- thats about it. but the product image file its looking for (acc to the image source) is in /files/imagecache/product/files/HP6_0.jpg. and there is no files directory in /files/imagecache/product/ . Is there anywhere else where these directories are set?

i've also tried flushing the cache presets and uploading the images again. same problem. Sad

edit: did a reinstall of everything and still the same problem. but this time, there are no folders or images being created in the imagecache folder. anything else i can check?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: Scattered Files - Catalog & Product Images

There's a setting for your general Drupal files folder, and in the image field for the images folder inside the files folder. Because imagecache requires the public file system, it's able to figure out where the files/ folder should be and work its magic. That's really strange that it cached a temporary file.

Can you point your browser to the original pictures? It kind of sounds like imagecache can't find them. Not sure what you can do about it though. :-/

Tanjerine's picture
Offline
Bug FinderInternationalizationizerNot KulvikThe other woman.
Joined: 08/31/2007
Juice: 235
Re: Re: Re: Re: Scattered Files - Catalog & Product Images

hi lyle, my browser can view the original images. did i mention im using the version that's on bazaar? do you think it could be a problem with that?

Tanjerine's picture
Offline
Bug FinderInternationalizationizerNot KulvikThe other woman.
Joined: 08/31/2007
Juice: 235
Re: Re: Re: Re: Re: Scattered Files - Catalog & Product Images

just a quick update, i noticed the same behavior upon a clean install of ubercart-5--1-0-alpha-7c but this time, i see the the tmp file within the files/imagecache/product/tmp directory, but the image still doesn't show up when viewing the product.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: Re: Re: Re: Scattered Files - Catalog & Product Imag

It almost sounds like a file permissions problem. Could you take a look at those and figure out if Apache can manipulate those folders and files?

Tanjerine's picture
Offline
Bug FinderInternationalizationizerNot KulvikThe other woman.
Joined: 08/31/2007
Juice: 235
Re: Re: Re: Re: Re: Re: Re: Scattered Files - Catalog & Product

oh yeah, i forgot to mention that i tried that too the other day. permissions went from 664 to 775 to 777. nada. flushing the presets and deleting & re-creating them gave me varied results. sometimes it would make an imagecache folder sometimes it wont. this is really weird. Sad

could it be a webserver problem? i've been using lighttpd and it didn't give me any problems before. i'll try hitting my PC and restarting it. that might work. Eye-wink

Boletus's picture
Offline
Joined: 09/09/2007
Juice: 117
Re: Re: Re: Re: Re: Re: Re: Re: Scattered Files - Catalog & Prod

I have the same problem (I think). files folder is set to 777.

Are you supposed to create the imagecache and the ubercart_images folders in files?

Tanjerine's picture
Offline
Bug FinderInternationalizationizerNot KulvikThe other woman.
Joined: 08/31/2007
Juice: 235
Re: Re: Re: Re: Re: Re: Re: Re: Re: Scattered Files - Catalog &

If im not mistaken, you're only supposed to make sure that there is a files folder with the write permissions inside the drupal folder. ubercart_images and imagecache are supposed to be created by their respective modules.

Boletus's picture
Offline
Joined: 09/09/2007
Juice: 117
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Scattered Files - Catalo

Well, I have that. The ubercart_images and imagecache folders are not created. I have disabled and enabled the imagecache module, but the folder does not show up. Which module does create ubercart_images folder?

Could it have something to do with the order things are done? I used the Uberinstaller. The files folder was set to 755 by default, and perhaps that hindered the ubercart_images and imagecache folders from being created? I then chmoded the files folder to 777. But I can't get the ubercart_images and imagecache to appear.

Tanjerine's picture
Offline
Bug FinderInternationalizationizerNot KulvikThe other woman.
Joined: 08/31/2007
Juice: 235
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Scattered Files - Ca

we seem to have a similar problem, though, im not using the uberinstaller. try lyle's suggestion of "flushing" the imagecache presets. go to /admin/settings/imagecache and flush each preset. or you can try deleting all the presets and re-creating them by going to /admin/store and there should be a link there to create the imagecache presets. see if that helps.

i've been doing all of that since i reinstalled ubercart and it hasn't fixed itself yet. Sad and my imagecache folder is erratic. sometimes it has the proper folders within it but not the files and sometimes it doesn't create anything inside it at all. Sad anyway, i hope flushing the presets work for you. lemme know how it goes. Smiling

Tanjerine's picture
Offline
Bug FinderInternationalizationizerNot KulvikThe other woman.
Joined: 08/31/2007
Juice: 235
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Scattered Files

hmm... googling and searching around led me to this link. it is possibly a lighttpd, imagecache, drupal, mod-rewrite problem and im still playing around with my lighttpd (read: trying the various soln's offered) to see whether anything will work.