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.jpg

Visiting 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.

  1. User selects an avatar (avatar01.jpg) from Avatar selection and saves profile
  2. Later on user uploads a personal avatar (custom02.png) saves profile and everything is working fine.
  3. User edits profile and checks the Delete picture radio button and saves the profile.
  4. Original (avatar01.jpg) file gets also deleted from /sites/default/files/avatar_selection/

Everything else is working great. Thanks for a nice module.

Comments

manuj_78’s picture

I am having similar problem of user avatars getting deleted randomly every few days

Weka’s picture

This problem is not random. It can be replicated anytime using the steps above.

stella’s picture

Status: Active » Fixed

I can't reproduce this with the latest dev version, but it does happen with the 1.6 version.

stella’s picture

Status: Fixed » Closed (duplicate)
manuj_78’s picture

Status: Closed (duplicate) » Active

As 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

stella’s picture

Status: Active » Fixed

It's marked as fixed because it is fixed in dev and will be included in the next release. Resetting status.

stella’s picture

Status: Fixed » Closed (duplicate)

and actually this is a duplicate, not just 'fixed'.