3 replies [Last post]
krunar's picture
Offline
Joined: 02/03/2008
Juice: 54
Was this information Helpful?

Hello to all,

First post here and unfortunately its about a problem.

First of all let me tell you that im relative new to drupal and total new to ubercart. In fact im just trying it to see if it wil solve some problems i had with e-commerce.
My problem is with imagecache.
File system path: sites/default/files
Temporary directory: /tmp
Download method: Public - files are available using HTTP directly.

When ever i upload a pic for a product the following directories are created
sites/default/files/imagecache/product/sites/default/files (the picture is saved here)
sites/default/files/sites/default (empty)

the image in the product is shown fine and there is no other problem except all those directories

any ideas?

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: imagecache - replicates directories

I get this too, but unless I'm mistaken, that's how it's supposed to work. The way the URL is constructed tells imagecache what preset to use, and where it's located.

Although I'm not sure about the second one in your list - sites/default/files/sites/default

In any event that's an ImageCache issue, probably, and not an Übercart one. Might want to open an issue with them.. (I considered it too but it works fine for me, even with the extra folders)

--
Help directly fund development: Donate via PayPal!

Summit_drupal's picture
Offline
Joined: 12/11/2010
Juice: 137
Re: Re: imagecache - replicates directories

Hi, Old issue, but having exacty the same. Is this the correct working, two times sites/default/files ?
In my situation it is not working ok..may be this has to do with it?

greetings,
Martijn

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Re: Re: imagecache - replicates directories

Probably a server setup issue. Check your public files setup under admin/settings/file-system.

In Drupal you can use sites/default/files (if it exists) or just files/ but it depends on if you expect to go to a mutlisite setup, though I think moving forward (especially with D7) sites/default/files is going to be the norm.

--
Help directly fund development: Donate via PayPal!