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

XF 1.2 Can´t change avatar picture

Discussion in 'XenForo Questions and Support' started by ramonbastos, Sep 21, 2013.

  1. ramonbastos

    ramonbastos Member

    Hi, do anyone knows why I can´t change the avatar picture on my forums? When i click on the default avatar, to change it, I get a

    Following error ocurred:
    404 Not Found
    nginx/1.4.2

    Thanks!
     
  2. Amaury

    Amaury Well-Known Member

    Looks like you have either a corrupt or missing file.
     
  3. Tracy Perry

    Tracy Perry Well-Known Member

    Permissions set correctly on /data and /internal_data and all files/directories below it?
    Additionally what does your nginx error log reflect?
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    What's the actual URL you are getting the 404 on?
     
  5. ramonbastos

    ramonbastos Member

    Sorry, how exactly do I check the permissions?
    There is no error log about this too..

    There isn´t a url, when I´m at my profile page and click the avatar picture to change it, a pop-up window comes up with the message.
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    ramonbastos likes this.
  7. ramonbastos

    ramonbastos Member

    No I can´t. The first time I try i get a 404, then the other times I click the picture nothing happens
     
  8. Tracy Perry

    Tracy Perry Well-Known Member

    Depends on whether you are accessing your server via SSH or via a panel (cPanel, etc). In cPanel (and the other panels) you should have a file explorer/browser. You can check the permissions (they should be 777 for those two directories and the ones below them).
    If using cPanel a nice little tutorial can be found at http://www.siteground.com/tutorials/cpanel/file_permissions.htm
     
  9. ramonbastos

    ramonbastos Member

    It´s via SSH, but I have a guy to make that for me.. What should I ask him?
     
  10. Tracy Perry

    Tracy Perry Well-Known Member

    To change the folders permissions on the /data and /internal_data under your root forum directory to 777 and also any directories below those two to the same.
     
  11. ramonbastos

    ramonbastos Member

    Thanks! I´ll let you know when he does it
     
  12. Jeremy

    Jeremy XenForo Moderator Staff Member

    Make sure you don't have an account directory on your system.
     
  13. ramonbastos

    ramonbastos Member

    Didn´t work..

    How do I check that?
     
  14. Jeremy

    Jeremy XenForo Moderator Staff Member

    Look at your files and verify you don't have a directory named account.
     
  15. ramonbastos

    ramonbastos Member

    There is not.
     
  16. Mike

    Mike XenForo Developer Staff Member

    This is something outside XF. I've confirmed the issue, but you can see the issue by putting "/avatar" at the end of your root domain URL -- even though "/avatars" gives a 404 as expected.

    You've specified something somewhere in your nginx config that involves the word "avatar".
     
  17. ramonbastos

    ramonbastos Member

  18. Jeremy

    Jeremy XenForo Moderator Staff Member

    jQuery won't cause an nginx 404 like that.
     
  19. ramonbastos

    ramonbastos Member

    He just found out why it was happening. My server was caching TAR archives, and the url ends is TAR (avaTAR)
    Lol, it looks like a joke, but its not. Now it only caches .tar, and its working. Thanks everyone!
     
    Tracy Perry likes this.
  20. Tracy Perry

    Tracy Perry Well-Known Member

    Can we say oopsie? :LOL:
     
    Amaury and ramonbastos like this.

Share This Page