By jongs on
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
anyone?
hi guys, anyone ca give me a hand with this?
Nope
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.
tried but could make it work. Am I understanding correctly?
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!
Ownership of the folder?
did you change the ownership of the folder to your web user? Is this a shared hosting server / vps
not sure how to do it
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...
if you have ssh access
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/
not working..
alx, it did´t work...
the owner of the folder was changed but still the thumbnail is not created...any thoughts?
admin/build/imagecache
now go to this page admin/build/imagecache to flush the images to have imagecache the recreate those images.
flushed but nothing..
we flushed but nothing happened....
do you see the "preset
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 "
present not created + no error on GD library
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.
admin/settings/file-system
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
they still are not appering
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!!
when you cd to files/ what
when you cd to files/
what do you see when you do ls -la
something like this
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
also did you happend to
also did you happend to forgot upload the files/.htaccess file into files/ ?
also make sure "/tmp" is exist in your remote server
all there
.htaccess is in the files directory but I haven´t touched it yet. also, we do have a tmp folder on my remote server...
sudo chown -R
sudo chown -R www-data:www-data files/
what is the url to your site?
tried it but did no work
I did´t work. the site is topdiet DOT org
ok looks like your clearn-urls are not enabled
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
thank you very much alx!!!
Alx, that was it! thank you very much!!
if you all looking for freelance work contact me at jonathangheller AT gmail
would happen to know..?
I also posted another question...http://drupal.org/node/330484
would you happen to know the answer to that one=?
thanks!
any thoughts on that other question?
any thoughts on that other question?