A similar (now closed) report about disappearing avatars is covered in http://drupal.org/node/239918

Two days ago I added 15 or so different avatars for people to choose from if they don't have the technical knowhow to upload their own. Today, two of the avatars have disappeared. I noticed by checking the recent log entries in the Drupal administration menu.

I haven't been able to figure out exactly how and when the images have disappeared, but I'm hoping the problem is related to the previous bug report, thus easy(ish) to find and fix.

Comments

stella’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

What are your avatar selection module settings at admin/settings/avatar_selection? It may be that you have the 'unique avatars' option enabled. If so, it means that if a user selects an avatar from the list, it will no longer appear in the list and won't be available to other users. If this isn't the case, then please try the latest dev release of the module as it may already be fixed there. I can't reproduce it at the moment, so any more info you can provide would be great.

Cheers,
Stella

slartie’s picture

Sorry for the belated reply.

I do not use the unique avatar option. In fact none of the checkboxes are marked in the Configure tab.

Apparently another 2 avatars have just disappeared from my avatar selector. The files themselves, however, are still in the /sites/default/files/avatar_selection folder.

Is there any risk by using the dev version. I'd hate to break something completely on the site.

stella’s picture

There's no risk with the dev version. It's in a ready-to-release status. This is the last open ticket :)

You mentioned you noticed the issue by checking the logs - can you tell me what error message in the log informed you of the problem?

What sort of user roles do you have configured? I mean in relation to avatars - you can assign roles to avatars, so only certain avatars are available to specific roles. Could it be that the images are no longer available in the selector because the user has the wrong role?

stella’s picture

6.x-1.6 has been released, so please try it to see if it fixes the problem.

slartie’s picture

I will test it .. Just popped on to check if there has been any progress.

as far as logs go, they simply state "file not found" even though they're still in the folder

two roles .. me and everybody else .. all avatars are available to all roles.

but now .. some sleep, then test :)

slartie’s picture

Everything _seems_ to be working as it should. At least I haven't seen any more avatars disappearing, so I think we can close this one.

Thanks for all the hard work.

stella’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Michsk’s picture

Version: 6.x-1.5 » 6.x-1.6
Component: User interface » Miscellaneous
Status: Closed (fixed) » Active

Ok this is just scary. This issue is very old and seems fixed tough I'm experiencing it. Only difference is that my images are removed from the /sites/default/file/avatar_selection/ folder. Don't really know what more info to supply tough i understand there is more needed. Maybe the maintainer could tell me what to do to supply more info?

pixelsweatshop’s picture

I am having the same issue. Does this have anything to do with an avatar being released back into the wild? ie. a user once used an avatar, then switched to their own? (BTW, using unique settings)

Michsk’s picture

Hello maintainer, we need you

HLopes’s picture

Same here, both .dev and 1.6 versions.

stella’s picture

Status: Active » Postponed (maintainer needs more info)

Hmm there was a similar issue #566626: Avatar files can be deleted when there are multiple pages of avatars which is fixed in the dev release, but not in the latest stable. If you can provide details of your module settings that would be great. Also if you've any idea on the steps needed to reproduce it that would be very useful.

HLopes’s picture

I've fixed for my installation by copying the selected avatar to a subfolder on avatar_selection_validate_user_avatar function and then assigning that copy to the user instead of the original.

I think it had something to do with imagecache deleting files.

The user would get the original avatar_selection avatar, and when they change their pic imagecache does his thing and deletes the old picture. ( maybe because of imagecache_profiles module )

I'm sorry for not being able to add more info, but i'm currently working on another project, and the config where the issue popped up was a multisite install with like 6 or 7 modules messing with the users pictures...

Reg With Pic
Global Avatar
Imagecache Profiles
Avatar Selection ( tried 6.x-1.6 and 6.x-1.x-dev, both have the same problem )
Webcam Profile ( this one is custom made by me, but if disabled or not the problem is still there )

Those are the ones i remember... But i'm pretty sure the culprit is either imagecache or imagecache_profiles module.

stella’s picture

Hmmm I still can't reproduce this. Can you tell me is the file removed from the files/avatar_selection/ directory? Or is it just no longer appearing in the selection widget? If it's the latter, it may be because you have the 'Enable unique avatars' setting enabled.

Does anything appear in the log file?

HLopes’s picture

Yes, the file is removed from the hdd.

And i'm sure "Enable unique avatars" is disabled.

No errors in watchdog, to find out what was happening i've added a debug_backtrace to core's file_delete function.

stella’s picture

Ok well let me know if you find anything in the backtrace. In the meantime, can you give me all of your avatar selection module settings so I can duplicate the setup here?

And be sure you're using the latest dev version, just in case. The 6.x-1.6 version definitely has problems.

stella’s picture

Status: Postponed (maintainer needs more info) » Fixed

No more feedback, closing.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.