# 升级到 2.6 后分类页面和主页出现 Error 500

**URL:** <https://meta.discourse.org/t/error-500-on-category-page-and-homepage-after-upgrade-to-2-6/162155>\
**Category:** Self-hosting\
**Created:** [2020 年8 月 26 日 17:07 UTC](https://meta.discourse.org/t/error-500-on-category-page-and-homepage-after-upgrade-to-2-6/162155 "2020-08-26T17:07:53Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2020 年8 月 27 日 15:11 UTC](https://meta.discourse.org/t/error-500-on-category-page-and-homepage-after-upgrade-to-2-6/162155/14 "2020-08-27T15:11:41Z")

</div>

搞定啦，@michaeld！干得漂亮。@Olivier_Baillon，你可以将 Michael 的帖子标记为解决方案！

如果其他人也遇到这个问题，可以按以下方式操作：

```plaintext
cd /var/discourse
./launcher enter app
rails c
Group.all.pluck(:id,:flair_icon,:flair_upload_id)
# 针对 flair_upload_id 不为空的群组
g=Group.find(GROUP_ID_FROM_THE_LIST) # 这里是 id，不是 flair_upload_id
g.flair_upload
g.save

```

还有更优雅的方法，但如果你只有少量数据需要处理，这个方案应该能帮你快速上手。

---

_[View the full topic](https://meta.discourse.org/t/error-500-on-category-page-and-homepage-after-upgrade-to-2-6/162155)._
