The first time a user uploads an avatar, the approval system works as intended. However, if a user tries to upload a new avatar after that, after the administrator approves it, the system will ignore the new picture and display the old one. Deleting the existing avatar doesn't help either.

Comments

white_pawn’s picture

Anyone?

dalad’s picture

Category: bug » support
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

This is not at all the beaviour I am experiencing with that same version. This could be a problem related to image caching, browser caching or anything else but avatar approval module

dalad’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
white_pawn’s picture

Status: Needs review » Closed (cannot reproduce)

It's definitely an ImageCache problem. After I flushed the cache, the new avatar was there. Now, why is it that without Avatar Approval, changing avatars works out of the box?

EDIT: I see now that line 631 (avatarapproval.module) says:

// TODO: if user data is cached (D7), we need to rebuild cache now

EDIT#2: The following line (#632) did the trick for me:
imagecache_image_flush($picture);

white_pawn’s picture

Status: Closed (cannot reproduce) » Needs review
dalad’s picture

Status: Closed (cannot reproduce) » Needs review

ok I'll take a look at this imagecache integration

dalad’s picture

Status: Needs review » Fixed

fixed in the latest dev. Thanks for reporting

EDIT: it seems there is a sync problem with the packaging script and the fix does not show up in the downloadable dev at this time. I'll see what can be done to solve this issue

Status: Fixed » Closed (fixed)

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