I started noticing 404 errors in the log file, for example:
Location: ...example.com/sites/default/files/avatar_selection/avatar01.jpg
Referrer: ...example.com/user/6/edit
Message: sites/default/files/avatar_selection/avatar01.jpgVisiting the user edit page I noticed broken image icons for some of the avatars and checking the /sites/default/files/avatar_selection/ directory confirmed that some of the files were missing.
I was able to replicate how the files get deleted.
- User selects an avatar (avatar01.jpg) from Avatar selection and saves profile
- Later on user uploads a personal avatar (custom02.png) saves profile and everything is working fine.
- User edits profile and checks the Delete picture radio button and saves the profile.
- Original (avatar01.jpg) file gets also deleted from /sites/default/files/avatar_selection/
Everything else is working great. Thanks for a nice module.
Comments
Comment #1
manuj_78 commentedI am having similar problem of user avatars getting deleted randomly every few days
Comment #2
Weka commentedThis problem is not random. It can be replicated anytime using the steps above.
Comment #3
stella commentedI can't reproduce this with the latest dev version, but it does happen with the 1.6 version.
Comment #4
stella commentedah duplicate of #566626: Avatar files can be deleted when there are multiple pages of avatars
Comment #5
manuj_78 commentedAs you mentioned, the problem still persists with the latest stable/recommended version of this module ie 1.6
So this should be marked as fixed only if a stable version is about to be released
Comment #6
stella commentedIt's marked as fixed because it is fixed in dev and will be included in the next release. Resetting status.
Comment #7
stella commentedand actually this is a duplicate, not just 'fixed'.