Drupal: ‘an image thumbnail was not able to be created’ [SOLVED]
I am using imagecache Drupal module to develop an image gallery. Everything worked fine in my local machine, but when uploading contents to my webserver some errors appeared when creating a new gallery:
an image thumbail was not able to be created
The solution is quite simple:
chmod 0777 /sites/default/files/imagefield_thumbs chmod 0777 /sites/default/files/imagefield_default_images chmod 0777 /httpdocs/sites/default/files/imagecache
and also
chmod 0777 /httpdocs/sites/default/files/imagecache/*
Check that your temp directory is writable too.
If the tips above won’t work, make sure you have GD Support enabled in your server (check it using phpinfo())
If you are not able to solve this, check this post.
Related posts:
Changing permissions to 777 will allow ANYONE to make changes to the files. This is not a valid solution.
the sites/default/files folder
chmod to 664 but no higher than 775
chown to apache.apache
This will keep the public from being able to change the files.
Thank you!