Currently i am unable to create images that get resized automaticaly according to the different image styles.

This includes the default styles such as thumbnail as well as the custom created styles.

I have checked the "Public file system path" as well as the "Temporary directory" (under Configuration > File system).

Both of the directories exist. The file permissions are good on the directories (777).

The original file that's uploaded gets created. It's just the scaled images that aren't getting created.

Any help with this problem would be very welcome. If there is already a solution somewhere (which means i searched for the wrong terms), a link to that would be very appreciated.


I can't find anything in the logfile either, except for messages like :

type : page not found

message: sites/default/files/styles/thumbnail/public/fotoslider/slider_images/testbeeld20130103005.jpg

  • Is this only happening for one field, or site-wide? Have you cleared Drupal's cache/imagecache cache?
    – jsheffers
    Jan 3 '13 at 21:47
  • 2
    Does the preview image work on the image styles (the hot air balloon?) Do you see this in the filesystem?
    – mpdonadio
    Jan 3 '13 at 21:59
  • 1
    this is happening site-wide, in any node-type. The hot air balloon gets made when creating a new image style. Jan 3 '13 at 23:22
  • 2
    Does this happen with all themes, including the stock ones like Garland and Bartik?
    – mpdonadio
    Jan 4 '13 at 3:25
  • Does this directory contain some images? sites/default/files/styles/thumbnail/public/fotoslider/slider_images/
    – luaa
    Jan 4 '13 at 10:41

The problem was fixed when I changed the theme to another one, and back, as per @MPD suggestion.

  • 1
    @MPD - Stumbled on here after poking at various solutions for nearly an hour. Can confirm changing theme did the trick. Oct 9 '15 at 5:44

Same issue here. I can avoid images not being created by not using 'drush cr' but clicking 'admin > config > performance > clear caches' instead.

(Drush Version 8.0.5)


Missing 'itok' token in the query string

Since Drupal 7.20 release image styles will not be generated unless the request includes a valid 'itok' token in the query string. (apparently this was DoS protection)

So if you upload a new image example.png and the theme does not use image_style_url() to generate the img src for an image style, you may be missing the token and the image style will not be generated.


For me the images were being uploaded to just the /files directory but wasn't generating in the styles folder for one of the image styles. all my permissions were correct too. This started happening after i updated my media module which did alot of updates from 1.x to 2.x --- what i found out was that the image style wasn't even created, which was why it wasnt showing up in the directory. Check your image styles page to make sure its there!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.