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

XF 1.2 Avatar upload not working

Discussion in 'Troubleshooting and Problems' started by petermk, Feb 26, 2014.

  1. petermk

    petermk Member

    Hi all,

    I recently converted my vBulletin forum to xenforo and just ran into a problem uploading avatars. I've tried changing folder permissions to 755 or 777, but it did not work. PHP scripts are owned on the server by the account user.

    I've also looked into error logs and noticed this kinda error for some users:

    getimagesize(/home/tgg/public_html/forums/data/avatars/l/11/11065.jpg): failed to open stream: No such file or directory Today at 10:11 AM - library/XenForo/Model/Avatar.php:252

    When I tried to upload, there was no server error at all.

    Thanks
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    What errors are you receiving?

    You haven't actually specified what about it isn't working.
     
  3. petermk

    petermk Member

    Basically I am getting broken images instead of avatars.
     
  4. petermk

    petermk Member

    I'm running PHP 5.4.25 DSO + suEXEC if that helps

    APC is on as well
     
  5. petermk

    petermk Member

    Ok, never mind. I got it.
     
  6. CyclingTribe

    CyclingTribe Well-Known Member

    I've just come across this issue and the fix (for me at least) was to chmod 0777 /data/avatars directory (and all child directories).

    It shouldn't happen normally, but I'd transferred the site via FTP to a different location and the permissions weren't properly set-up. ;)
     

Share This Page