5

When I clear the cache of the site, I get lot of warnings with

"Permission denied in drupal_unlink() (line 2199 of home/public_html/sitename/includes/file.inc)."

And I am unable to upload any default image to the site with the warning

"File Could not be uploaded"

  • Make sure your permissions are set correctly for the specified folders mentioned in the errors. The web server must have permission to edit the files in the folders (user is usually something like www-data). – monymirza Feb 25 '13 at 12:29
  • You could also be out of space . – drcelus Feb 25 '13 at 13:41
  • Are you doing this from the UI or from drush? – mpdonadio Feb 25 '13 at 14:05
  • I am doing this from the UI – Prem Anand Feb 26 '13 at 7:02
1

Check your temp folder under "admin > config > media > file system": It should be writeable.

screenshot

  • The permission for the tmp folder is set to 777 – Prem Anand Feb 25 '13 at 12:42
  • check its path. – monymirza Feb 25 '13 at 12:43
  • sites/default/files/tmp . This is the path – Prem Anand Feb 25 '13 at 12:45
  • give this path in "Temporary directory" as in image. – monymirza Feb 25 '13 at 14:52
  • This doesn't resolve the issue. – Prem Anand Feb 26 '13 at 7:05
1

If write permission set already but still not resolve this, try manually delete all files (.css) in "sites\default\files\colorizer" folder first, then Clear Cache again! I have done sucessfully in my Windows 7 OS.

Regards

Chungph

1

I know an answers already been accepted, but I wanted to add that I found (weirdly) that clearing my browser cache also fixed this issue.

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.