1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Avatar bug?

Discussion in 'Troubleshooting and Problems' started by Frode789, Jan 30, 2015.

  1. Frode789

    Frode789 Active Member

    Seems to be some weird avatar problem on one of my members profile. I've selected a new avatar for him (the cat), which is visible in thread view, but I see his old avatar in forum view (for example on alerts or in the recent posts widget).

    If I delete his avatar, it still doesn't go away (the old one).

    new.jpg old.jpg
     
  2. Amaury

    Amaury Well-Known Member

    Can you confirm the same issue on the default XenForo style?
     
  3. Frode789

    Frode789 Active Member

    Yes.
     
  4. Amaury

    Amaury Well-Known Member

    How about with add-ons disabled?
     
  5. Frode789

    Frode789 Active Member

    No change. Only have this problem with him, never seen it before o_O
     
  6. Amaury

    Amaury Well-Known Member

    If he changes it himself, does the issue resolve itself?
     
  7. Frode789

    Frode789 Active Member

    He tried to do it first, didn't work. Then I tried, but the old one is still as mentioned visible on forum view/active users list/member list etc.
     
  8. Amaury

    Amaury Well-Known Member

    Are you both seeing this issue or just you? If the latter, it might be some weird caching issue.
     
  9. Mike

    Mike XenForo Developer Staff Member

    Deleting his avatar doesn't stop it from showing up at all? That's strange as it shouldn't even by trying to load the avatar in that case. Can you double check that's the case by checking in an incognito window or different browser after deleting the avatar?
     
  10. Frode789

    Frode789 Active Member

    @ Maru: We are both seeing the same problem.

    @ Mike: Deleting it does remove it, but when I try to add a new one, his old keeps on re-appearing..

    In /admin.php?users/yusta.xx/edit I see his old avatar, in admin.php?users/yusta.xx/avatar I see his new.. Weird.
     
  11. Mike

    Mike XenForo Developer Staff Member

    This would imply a permission issue in the data/ directory. You should chmod that directory and all files within it recursively to 0777. (This permission config should work for all, but it's not necessary for all servers; you could look at this person's avatars specifically to see if the permissions are out of whack but there may be others as well.)
     
  12. Frode789

    Frode789 Active Member

    I did CHMOD /data and all its content, then I tried to delete & upload the correct avatar again, but still the same case.

    Edit. The folder seems to reset to 0755 after a minute or two. And within the data folder, some are 0755, and some are 0777. Is this normal?
     
  13. Mike

    Mike XenForo Developer Staff Member

    That's not normal, especially if it's changing back on you. Can you find the avatars for this user? They'll be in the data/avatars/<s,m,l>/ directories. Divide their user ID by 1000 and round down to find the next directory. The avatar will be <their user ID>.jpg. Are the permissions different in each of the s,m,l directories? How does it compare to the avatar files for your user?
     
  14. Frode789

    Frode789 Active Member

    l folder : Same as on my PC. Correct avatar.
    m folder: 96 x 96 version. Correct avatar.
    s folder: 48 * 48 version. Correct avatar. (which is odd, as this is the version being showed in widgets/online users etc, and is pulling the old avatar.)

    I have Gravatar avatar, so I don't pull from my avatar folders, but it works when I test with a local version.

    EDIT: Fixed it. Did 777 CHMOD on everything again, then cleared cache and forced purge of CDN cache, and it works now :) So probably was just CHMOD/cache problem.
     

Share This Page