We are using imagecache to create thumbnails. If I understand correctly, they way this works is that ones I upload and image a thumbnails is created which is stored on a folder named as the "preset" created in the imagecache module.

Locally this work but on the server neither the folder nor the thumbnail exist. So far we have set the permits on that folder (chmod 777) but the problem remains.

Any thoughts on what might be happening here?

thanks!

Comments

jongs’s picture

hi guys, anyone ca give me a hand with this?

yelvington’s picture

Imagecache does not create derivatives when you upload an image. The derivatives are not created until they are requested. The resulting file is then stored in the filesystem (which is why it's called imageCACHE).

The server must have permission to create the full path, including any necessary directories. Permissions are one key area where failure can occur. Another would be failure to provide the necessary image-processing libraries (GD). Either way, there should be errors in the logs.

jongs’s picture

not sure what you mean by "The server must have permission to create the full path, including any necessary directories."...what/where do I need to check this and set it up?

So far I have set up the permission of those directories to 777 but with no success...

thanks!

alim418’s picture

did you change the ownership of the folder to your web user? Is this a shared hosting server / vps

jongs’s picture

could you point me out how I change the ownership og the folder to my web user?

again, thank you very much for taking the time to help me with this...

alim418’s picture

if you have ssh access to your server use this
depends on what your webuser is in my case is www-data

sudo chown -R alexl:www-data files/

jongs’s picture

alx, it did´t work...

the owner of the folder was changed but still the thumbnail is not created...any thoughts?

alim418’s picture

now go to this page admin/build/imagecache to flush the images to have imagecache the recreate those images.

jongs’s picture

we flushed but nothing happened....

alim418’s picture

do you see the "preset folders" that you created through the admin/build/imagecache? inside files/ directory?

I suggest you try to create a new preset and see if that works.

Also do you have GD install on your remote server? go to this page (admin/logs/status) to check if there is any error like " The GD library for PHP is missing or outdated "

jongs’s picture

preset folders is not being created. I tried to add a new preset and neither the folder nor the thumbnail where created.

also, I checked admin/logs/status and could´t find an error on the GD library. all looks fine.

alim418’s picture

what is your File system path is it "files"

if it is, do you see a folder inside files called "imagecache"

the folders structure should work like this

"file system path"/imagecache/"your preset name"
so it would be like this

files/imagecache/presest1

try sudo chmod -R 0777 files

if folders/images are not created definitetly problem with permissions

jongs’s picture

I tried the sudo chmod -R 0777, created a new preset and still neither the folder nor the thumbnail appears...
regarding permissions: from the sites folder all files and directories have 777 permission...is there anything else here that we should be doing?

thanks!!

alim418’s picture

when you cd to files/
what do you see when you do ls -la

jongs’s picture

I can see all the images that I have uploaded in order to create the thumbnails..something like this:
-rwxrwxrwx 1 jgheller www-data 8636 2008-10-08 22:08 soy.jpg

alim418’s picture

also did you happend to forgot upload the files/.htaccess file into files/ ?
also make sure "/tmp" is exist in your remote server

jongs’s picture

.htaccess is in the files directory but I haven´t touched it yet. also, we do have a tmp folder on my remote server...

alim418’s picture

sudo chown -R www-data:www-data files/

what is the url to your site?

jongs’s picture

I did´t work. the site is topdiet DOT org

alim418’s picture

So first try to enable your clean-urls by going
admin/settings/clean-urls

if you can't enabled make sure you have AllowOverride all, here is the documentaton for clean-urls
http://drupal.org/node/15365

jongs’s picture

Alx, that was it! thank you very much!!

if you all looking for freelance work contact me at jonathangheller AT gmail

jongs’s picture

I also posted another question...http://drupal.org/node/330484

would you happen to know the answer to that one=?

thanks!

jongs’s picture

any thoughts on that other question?