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.
On ?q=admin/user/configure it tries to create the directory %files%/pictures even when I have picture support disabled. Surely this folder should only be created when I have the picture support enabled?
Error in full:
warning: mkdir(files/xxxxxx/pictures): Permission denied in /var/www/html/drupal-4.5.2/includes/file.inc on line 77.
Comment | File | Size | Author |
---|---|---|---|
#2 | user_create_image_dir.patch | 1.35 KB | tostinni |
Comments
Comment #1
Uwe Hermann CreditAttribution: Uwe Hermann commentedStill applies to HEAD.
Comment #2
tostinni CreditAttribution: tostinni commentedThe path in HEAD is
admin/settings/user
Here is a little patch that check first if picture support is enable and then create the path.
Is it so important to check this ?
And I think that your files directory should get write permissions, this is a normal behaviour of Drupal to store its files.
Comment #3
Uwe Hermann CreditAttribution: Uwe Hermann commented+1. It's a nice usability improvement, applies cleanly to HEAD, and works as expected.
Comment #4
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #5
(not verified) CreditAttribution: commentedComment #6
(not verified) CreditAttribution: commented