Posted by victoria_b on April 18, 2009 at 8:13pm
Jump to:
| Project: | Avatar Approval |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | dalad |
| Status: | closed (fixed) |
Issue Summary
Just updated to the latest Dev version and have experienced the following problem.
When a user uploads their avatar the awaiting approval image displays fine. When viewing the approval queue the users avatar is displaying correctly however when I approve it is doesn't appear in the user's profile page but the option to delete it is there. I get their name in text but no image. If I visit the approved avatar's queue the image is displaying correctly.
Any ideas on why the avatar after being approved isn't appearing on the user profile page?
Comments
#1
"I get their name in text but no image"
Do you mean the browser (firefox I assume) is displaying the alt text for the image? This indicates the image path cannot be resolved.
Would you please ensure the following:
1) the image is in the user picture path - so it must be, if it displays in the admin page
2) can you tell the path the image on the user profile is pointing to? Like right-click > view image... the error must be here somewhere
Eventually, can you give a link for me to try this?
Thank you for your cooperation!
#2
I posted #716470: Compatibility with avatar_selection.module, and thought at the time that not displaying the avatar had to do with avatar_selection.module. It turns out there is another problem: once approved, user->picture in the database is set to sites/default/files/pictures/picture-%uid, but the file is never created. Perhaps there was a reliance on this file being there before it was sent for approval.
I think the code should check if this file exists, and if not, copy it from the approval md5-named file. I did it by hand for one user, and avatar appeared. I will see if I can patch the code. It seems to be all in avatarapproval_do_approval() function.
#3
Review patch here: #718580: Various fixes, make module useful
#4
#5
Automatically closed -- issue fixed for 2 weeks with no activity.