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:

  1. Drupal: how to change ImageCache Temp Directory [SOLVED]
  2. Drupal: Override node.tpl.php using Zen theme [solved]
  3. Drupal: Useful modules
  4. Drupal: customize language switcher block
  5. Drupal not showing contact form menu item [solved]

3 Responses to “Drupal: ‘an image thumbnail was not able to be created’ [SOLVED]”

  • JMG Support says:

    Changing permissions to 777 will allow ANYONE to make changes to the files. This is not a valid solution.

  • JMG Support says:

    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.

  • Vero says:

    Thank you!

Leave a Reply

Paypal donate

Please help me keep this blog up by donating.

Por favor, ayúdame a continuar con el blog donando.