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

XF 1.1 Avatars in conversation emails not showing up

Discussion in 'Troubleshooting and Problems' started by latimer, Nov 1, 2011.

  1. latimer

    latimer Active Member

    I'm guessing this isn't a bug since I haven't seen anyone else with this problem, but in my conversation emails, the avatars don't include the domain of my site. It just shows up as http://data/avatars/s/etc. Any ideas on what the problem could be?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    When did the problem start? Did you make any changes prior to it occurring?

    Do you have any outdated templates?

    Any add-ons installed?
  3. latimer

    latimer Active Member

    I'm actually not sure when it started, it could have never been working I'd have to ask some of my members. All of my templates are up-to-date and the problem persists when I disable all my add-ons.

    I've looked through the template helper code and this seems to be what's causing the problem. XenForo_Application::$externalDataUrl's value is just 'data' but I don't know how to fix it other than hard-coding my url into the helper.
    return XenForo_Application::$externalDataUrl . "/avatars/$size/$group/$user[user_id].jpg?$user[avatar_date]";
  4. Brogan

    Brogan XenForo Moderator Staff Member

    That's the standard value for the externalDataUrl.

    You can see that on line 517 of library/XenForo/Application.php.
    'externalDataUrl' => 'data',
  5. latimer

    latimer Active Member

    I was actually able to narrow it down to a problem with Windows Live Email. I tried using a Live email here on the XenForo forum and had the same problem. Even after selecting to always allow images from contact@xenforo.com, the images are broken, with no domain in the image source (http://data/avatars/). It doesn't seem like there are different templates for different email services, so my guess is that Live email actively removes the domain from the emails. Can anyone confirm this?
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Oh you mean the notification emails received for a Conversation.

    I thought it was a problem with avatars not being displayed in XenForo...

Share This Page