Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This the contents of the red box, which I get when trying to update my user picture on groups.drupal.org:
* The selected file /tmp/tmp_Ghk3EK could not be copied.
* Failed to upload the picture image; the pictures directory doesn't exist.
(And it keeps my previous user picture luckily).
Comments
Comment #1
Gábor HojtsyMaybe a more specific title will get some attention!
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedI routinely get reports of this. I really don't know what to say. I am hoping that Gerhard can look into it because Drupal's status report says that the temp and files directories are OK.
Comment #3
Gábor HojtsyWell, this is the validation part which results in the second error message:
The error message is misleading here (a Drupal bugfix is probably in order :), the directory could very well exist, but the file cannot be moved for some reason (as the first error message shows). It could happen that file or directory permissions are the reasons here (in the pictures directory).
Comment #4
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedsudo chown -R apache:apache pictures
worked wonders...
Comment #5
Gábor HojtsyI also comitted a wording fix to the error message to indicate that it might be because of permission problems.
Comment #6
drummCommitted to 5.
Goba- please attach patches.
Comment #7
drummer, Gábor.
Comment #8
Electrocat CreditAttribution: Electrocat commentedNice that you guys have discussed this. I have now seen so many threads on this that I might have a problem uploading a picture file to my head.
Okay, so the directory doesn't exist. For this new install I am working with, that is totally correct.
The Image directory didn't exist either, but going to the config for the image module it made a check and WHAM! "Directory diesn't exist... Created directory..."
What I can't find is the page to visit in Drupal admin to see that the pictures directory should exist and then if not create the directory, make the correct permissions, ect...
Perhaps there should be a module that can parse all the directories that should exist, and make the necessary corrections.
The pictures directory is OWNED by drupal, so therefore we should be able to find a place to fix this in the admin settings.
As for this being changed to fixed? I don't see how anyone could call this fixed when a new install with a downloaded core pack from last week gets this problem.
Up an at 'em boys and girls, this is not fixed.
Comment #9
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedthis is fixed for groups.drupal.org
please don't hijack old issues.
Comment #10
(not verified) CreditAttribution: commentedComment #11
prokopton CreditAttribution: prokopton commentedHere's what worked for me on Ubuntu 10.04 LTS and PHP 5.2.x:
chown -R www-data:www-data /var/www/files/pictures/
chmod 775 /var/www/files/pictures/
You might want to use 777 if 775 doesn't work.