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 Upload javascript error

Discussion in 'Troubleshooting and Problems' started by Warchamp7, Apr 21, 2015.

  1. Warchamp7

    Warchamp7 Active Member

    I'm getting an error in the console when uploading a new avatar. The upload goes through, and the change takes effect on refresh. However, the Okay button doesn't get the disabled property removed from it, so it is unclickable, and the js fails to update the avatar display on the page.

    {"sizeCode":"m","maxWidth":96,"maxDimension":"width","width":150,"height":168,"cropX":0,"cropY":5,"urls":{"l":"data\/avatars\/l\/0\/1.jpg?1429647681","m":"data\/avatars\/m\/0\/1.jpg?1429647681","s":"data\/avatars\/s\/0\/1.jpg?1429647681"},"user_id":1,"avatar_date":1429647681,"cropCss":{"left":"21px","top":"12px"},"message":"Upload completed successfully","_visitor_conversationsUnread":"0","_visitor_alertsUnread":"0"}.Admin .pageWidth {
        max-width: 94%  
    .Admin .xenForm .ctrlUnit>dt {
        width: 25%  
    textarea.textCtrl.Elastic {
      max-height: none; 
    (anonymous function) @ xenforo.js?_v=115155e0:333
    n.event.dispatch @ jquery-1.11.0.min.js:3
    n.event.add.r.handle @ jquery-1.11.0.min.js:3
  2. Mike

    Mike XenForo Developer Staff Member

    It looks like an add-on is modifying the output incorrectly by appending CSS. You'll need to disable add-ons one by one to determine which it is.
  3. Warchamp7

    Warchamp7 Active Member

    I tried disabling everything on the board and switched to the default XenForo theme with no luck.

    I did modify one XenForo file to change Large avatar size to 150. /XenForo/model/avatar.php

    Would that affect this? Changing it back didn't seem to fix it
    Last edited: Apr 22, 2015
  4. Warchamp7

    Warchamp7 Active Member

    For some reason, this issue doesn't happen in an incognito window?

    I also get the problem on a fresh install of XenForo 1.4.6. No changes, no add ons
  5. Mike

    Mike XenForo Developer Staff Member

    The CSS being appended certainly appears to be XenForo specific, but it's also not part of the default XenForo so it can't be coming from XF.

    The fact that it doesn't happen in an incognito window may point to a browser extension issue.
    Warchamp7 likes this.
  6. Warchamp7

    Warchamp7 Active Member

    Oooh, excellent catch. It's my Stylish tweaks I have set for the admin panel, I didn't even have that cross my mind. Strange that they're causing an issue like this. Thank you though

    I feel foolish :p
    Last edited: Apr 22, 2015

Share This Page