OK, My situation is really complicated (or Im stupid). I start my website http://rlsgame.org with Drupal System (even if Im .NET developer)... After 3 month, my website start grow up (about 2000 article and 3000 members) But a problem appear !!! I didnt touch anything, It appear just like that !!

When I want submit a Node, I have an issue with Images, I cant see the preview image :

enter image description here

and After submiting the Node, here is the result:

enter image description here

I refresh the page and the nothing, But after i press CTR+F5, the article is fine:

enter image description here

you can check the page here: http://rlsgame.org/PC/Games/ArmA-III All is fine...

But the big problem is that Drupal System cannot generate the derived image of User Picture !! Even if I press CTR+F5 like before, the problem is still here, look an exemple of a profile page:

enter image description here Link: http://rlsgame.org/users/gamer

The old users profile is fine, because the picture is generated before the problem, exemple:

enter image description here Link: http://rlsgame.org/users/mgs

And one more thing it start to appear too, Drupal start Caching comments (not like before this problem), when I post comment, sometimes it apear without Caching, and sometimes I must wait about 10 sec, for exemple, I post a comment and nothing appear, and I navigate to the homepage, and here we go, the msg appears:

enter image description here

I think if I fix the issue, All those problems will disappear ...

Im looking for fixing that 10 days ago, So Just for info:

  • All files permission Are OK: sites/default => 555 sites/default/files => 755 (and all sub-folders too including styles)
  • And paths of File system are OK
  • Drupal is updated to 7.26 (latest version)

And the problem is not from the server (Im working on Shared Server) because I downloaded my website and run it in Local but I see the same problem plus My website work before so the problem is not from the server.

Ah, one thing, when i check Reports Log, I see a lot of warning, here is an exemple:

enter image description here

Thats all, plz help me to fix that, Im losing traffic....

Thanx for advance.

  • Can you confirm exact version of Drupal you are currently using, and site problems? Look at admin/reports/status for both.
    – mpdonadio
    Commented Mar 21, 2014 at 19:15
  • I edit the topic, the drupal version is 7.26
    – slix ikou
    Commented Mar 21, 2014 at 19:16
  • From my expirence with those kind of problems it is usualy a permissions problem after all. You wrote that the styles directory has 755 permission (to much in my opinion but nevermind) what about the files? And what about the owner and group? Is it configured right? One more thing -Drupal has an issue about the open_basedir and images - google it and check that it is configured right. (If you can't find it tell me and I'll find it for you..). I just read the above comment about the version, have you updated the .htaccess files with the 7.23 update (or 7.24 I'm not sure)
    – rreiss
    Commented Mar 21, 2014 at 19:20
  • What do you mean @Rotem with "owner and group" ? I didnt update .htaccess, is it required to update .htaccess ?
    – slix ikou
    Commented Mar 21, 2014 at 19:34
  • The files and directories owner and group... And Drupal 7.23 contains an update to the files, private files and temp files .htaccess have you updated the core recently or you were using 7.26 since the begining?
    – rreiss
    Commented Mar 21, 2014 at 19:45

1 Answer 1


In your settings.php file add this

$conf['image_allow_insecure_derivatives'] = TRUE;

In the future you should use image_style_url() when using image styles as this will then add in itok parameter for images. Usage: image_style_url doesn't create images

More info about this: https://drupal.org/drupal-7.21-release-notes

  • OK I will try this now, give me 2 min
    – slix ikou
    Commented Mar 21, 2014 at 19:16
  • To make the answer complete, this is a DDoS protection feature added in Drupal 7.22. Modules using correct APIs should continue to work (or you might need to update them). I used this $conf hack all the time though.
    – AKS
    Commented Mar 21, 2014 at 19:16
  • @slixikou, if you search on this site for "itok" or Google for "drupal itok" you will learn more about the problem.
    – mpdonadio
    Commented Mar 21, 2014 at 19:23
  • Ok guys, how can I edit settings.php, I get permission problem. I change the settings.php permission to 755 and nothing, always permission error (Im working with cPanel) !!
    – slix ikou
    Commented Mar 21, 2014 at 19:30
  • 1
    No you don't need to update the .htaccess if it is already updated with the recent .htaccess - if it isn't updated the status report would indicate it as a problem. And you wrote that the settings.php has 755 permissions - change it to 440.. It is a security issue
    – rreiss
    Commented Mar 21, 2014 at 19:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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