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.
Hi
I have avatar selection set up, but I seem to randomly lose all images that have been uploaded - those uploaded by users (through the normal procedure and end up in "pictures" by default) are not deleted, but those that aer added to avatar_selection (and go to the avatar_selection folder) are deleted. Looking at the webfolder, it is empty.
I am not sure when, but there is a chance this happens every cron run.
Comment | File | Size | Author |
---|---|---|---|
#9 | avatar_selection_227089_part2.patch | 1.74 KB | stella |
#1 | avatar_selection_227089.patch | 1.3 KB | stella |
Comments
Comment #1
stella CreditAttribution: stella commentedSorry, this was due to a change in how uploaded files are handled in D6. The attached patch should hopefully fix this issue for you.
Cheers,
Stella
Comment #2
NaheemSays CreditAttribution: NaheemSays commentedThanks.
Comment #3
jancici CreditAttribution: jancici commentedthanks, that patch did help to me too.
Comment #4
stella CreditAttribution: stella commentedReleased in avatar selection 6.x-1.2.
Cheers,
Stella
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
NaheemSays CreditAttribution: NaheemSays commentedI am still losing avatars - not all of them at once, but a few randomly here and there.
The avatar selection module still lists them, and they are also there in the files database table, but not there on the webserver.
Comment #7
stella CreditAttribution: stella commentedCan you send me your avatar selection settings please? Are you using public or private file downloads by the way?
Comment #8
NaheemSays CreditAttribution: NaheemSays commentedPublic file downloads.
As for settings, none of the boxes on the admin/settings/avatar_selection page are ticked. Avatars are available to all roles.
I may have figured out how to reproduce this - it seems that there is a clash with allowing people to upload their own avatars (Drupal core function).
how to reproduce:
1. Select avatar via avatar selection, save.
2. change your mind, upload an avatar from the "upload picture" box.
3. Change you mind again - try to upload new picture. Get an error that files/ does not exist or pictures folder not writable (That is probably a core bug)
4. Click delete. This deleted the image that was selected in step 1, not 2.
5. Upload a new picture. The picture uploaded in step 2 is seen, not the new one.
EDIT - number 4 and 5 have been changed.
EDIT 2 - I suppose only step 4 is a avatar_selection bug. The rest is probably Core?
Comment #9
stella CreditAttribution: stella commentedThat issue with about the file not existing was actually an avatar selection bug. It may be related to the problems you're seeing. Try the attached patch or the next dev release (available later today).
Cheers,
Stella
Comment #10
stella CreditAttribution: stella commentedMarked #244791: Avatars quit working as a duplicate of this issue.
Comment #11
stella CreditAttribution: stella commentedReleased in 6.x-1.3.
Cheers,
Stella
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #13
Sinan Erdem CreditAttribution: Sinan Erdem commentedSorry, I am using version 1.6 but some of the avatars disappear... I tried to set file permissions to read only, didnt have chance to test yet...
Cheers,
Sinan
Comment #14
stella CreditAttribution: stella commentedSounds like your particular issue is the same as #432474: Avatar disappearing from the selector. Closing in favour of that one.