# New letter avatars are sometimes blank

**URL:** <https://meta.discourse.org/t/new-letter-avatars-are-sometimes-blank/27225>\
**Category:** Bug\
**Created:** [2015 年4 月 5 日 16:03 UTC](https://meta.discourse.org/t/new-letter-avatars-are-sometimes-blank/27225 "2015-04-05T16:03:38Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![pjv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pjv/32/115994_2.png) [@pjv](https://meta.discourse.org/u/pjv)\
发布日期： [2015 年4 月 5 日 16:03 UTC](https://meta.discourse.org/t/new-letter-avatars-are-sometimes-blank/27225/1 "2015-04-05T16:03:38Z")

</div>

Lots of moving parts here, so this is probably more of a request for pointers on where to look to figure out what the problem is. Here is the symptom visually:  
 ![](https://global.discourse-cdn.com/meta/original/3X/c/7/c7801bd7f6ab9d7baab03364a994ce0b6fbf798f.png)

I am using Wordpress SSO (via the [PrimeTime SSO Plugin](https://wordpress.org/plugins/pt-wp-discourse-sso/), poke @etc ) as well as the wp-discourse plugin (though not using SSO through that plugin because it [doesn’t work for me](https://github.com/discourse/wp-discourse/issues/115)) and I created a new test user in wordpress and then logged in from Discourse as that test user. The letter avatar for the test user shows as in the picture above, i.e. there is no letter.

When I first set up and connected Discourse with WP, using my WP admin account, the avatar created in Discourse was fine for that user:  
 ![](https://global.discourse-cdn.com/meta/original/3X/6/d/6d15466e71799c3ab922623e5d652d6157e8069e.png)

Having taken a cursory look through the avatar creation code (and not being a ruby dev at all), my first thought was that maybe there is some sequence of events in a wordpress SSO login for a new user where it is trying to create the avatar before it knows the user’s name? Obviously since the first user worked, it doesn’t always happen. I’m sorry but I have no idea what difference there might have been in the sequence of events between the user that worked and the one that didn’t.

I also have the Discourse preference set called “sso overrides avatar”, thinking that if our existing users happened to have an avatar set already in their wordpress profile that it would be good to import it. But looking at the code of the PrimeTime SSO plugin, it looks to me like they are not implementing avatars as part of the SSO payload. In any case, neither my original admin user nor the new test user had wordpress avatars defined.

So, with all that background here are a couple specific questions:

1. Where should I look to try to figure out how/why this might be happening?
2. Is there any way on the Discourse side to force a “re-creation” of the letter avatar for a specific user?

---

_[View the full topic](https://meta.discourse.org/t/new-letter-avatars-are-sometimes-blank/27225)._
