# Meta 上缺少头部个人资料图片

**URL:** https://meta.discourse.org/t/missing-header-profile-images-on-meta/98278
**Category:** Bug
**Created:** [2018年九月28日 14:11 UTC](https://meta.discourse.org/t/missing-header-profile-images-on-meta/98278 "2018-09-28T14:11:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Hector](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@Hector](https://meta.discourse.org/u/Hector)
#### Post date: [2018年九月28日 14:11 UTC](https://meta.discourse.org/t/missing-header-profile-images-on-meta/98278/1 "2018-09-28T14:11:22Z")

</div>

Has anyone else noticed that the header/background images on user profiles are missing here on Meta? S3 gives a 403 (forbidden) error.

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/e/1eff19fdc24d5cd150ee6fbce82f0d84c3d1dc98.png)

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [2018年九月28日 18:58 UTC](https://meta.discourse.org/t/missing-header-profile-images-on-meta/98278/3 "2018-09-28T18:58:50Z")

</div>

Hmmm. I had an image for a user card background but it’s not showing on my profile settings page. I don’t remember my having deleted it, so it looks like there’s a problem somewhere.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2018年十月1日 02:56 UTC](https://meta.discourse.org/t/missing-header-profile-images-on-meta/98278/5 "2018-10-01T02:56:58Z")

</div>

This was caused by a regression when we [switched to dualstack endpoints](https://github.com/discourse/discourse/commit/2271918be2f38359ad76f44c964f45157732de4e) for AWS s3 and it looks like we missed the `UserProfile` table when [correcting the links in the uploads table](https://github.com/discourse/discourse/commit/83e1315e42900b4052522bf14da83cf6985aae01) previously. We need to update `UserProfile` to not store the upload’s url in `profile_background` and `card_background` and instead point it to the upload’s id to avoid this nightmare in the future.

I’m pushing out the migration to fix this soon.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2018年十月1日 10:30 UTC](https://meta.discourse.org/t/missing-header-profile-images-on-meta/98278/6 "2018-10-01T10:30:39Z")

</div>

This is fixed in

[https://github.com/discourse/discourse/commit/cfa7173da346ec9f31daac13b058ba82419771d9](https://github.com/discourse/discourse/commit/cfa7173da346ec9f31daac13b058ba82419771d9)

Backported to stable and beta as well.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018年十月2日 01:00 UTC](https://meta.discourse.org/t/missing-header-profile-images-on-meta/98278/7 "2018-10-02T01:00:08Z")

</div>


