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.
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
Comment #1
stella CreditAttribution: stella commentedWhat 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
Comment #2
slartie CreditAttribution: slartie commentedSorry 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.
Comment #3
stella CreditAttribution: stella commentedThere'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?
Comment #4
stella CreditAttribution: stella commented6.x-1.6 has been released, so please try it to see if it fixes the problem.
Comment #5
slartie CreditAttribution: slartie commentedI 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 :)
Comment #6
slartie CreditAttribution: slartie commentedEverything _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.
Comment #7
stella CreditAttribution: stella commentedComment #9
Michsk CreditAttribution: Michsk commentedOk 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?
Comment #10
pixelsweatshop CreditAttribution: pixelsweatshop commentedI 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)
Comment #11
Michsk CreditAttribution: Michsk commentedHello maintainer, we need you
Comment #12
HLopes CreditAttribution: HLopes commentedSame here, both .dev and 1.6 versions.
Comment #13
stella CreditAttribution: stella commentedHmm 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.
Comment #14
HLopes CreditAttribution: HLopes commentedI'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.
Comment #15
stella CreditAttribution: stella commentedHmmm 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?
Comment #16
HLopes CreditAttribution: HLopes commentedYes, 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.
Comment #17
stella CreditAttribution: stella commentedOk 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.
Comment #18
stella CreditAttribution: stella commentedNo more feedback, closing.