# 我不明白问题出问题是什么问题

**URL:** <https://meta.discourse.org/t/i-dont-understand-whats-the-problem/218922>\
**Category:** Support\
**Created:** [2022年二月21日 05:56 UTC](https://meta.discourse.org/t/i-dont-understand-whats-the-problem/218922 "2022-02-21T05:56:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Develcoder](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/develcoder/32/244725_2.png) [@Develcoder](https://meta.discourse.org/u/Develcoder)\
**Post date:** [2022年二月21日 05:56 UTC](https://meta.discourse.org/t/i-dont-understand-whats-the-problem/218922/1 "2022-02-21T05:56:18Z")

</div>

```plaintext
ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation \"categories\" does not exist
LINE 1: SELECT \"categories\".\"id\" FROM \"categories\" WHERE \"categories...
                                      ^
)
lib/freedom_patches/fast_pluck.rb:41:in `select_raw'
lib/freedom_patches/fast_pluck.rb:59:in `pluck'
lib/guardian/category_guardian.rb:69:in `allowed_category_ids'
app/models/tag.rb:102:in `top_tags'
app/serializers/site_serializer.rb:160:in `top_tags'
(eval):20:in `_fast_attributes'
app/models/site.rb:181:in `json_for'
app/controllers/application_controller.rb:605:in `preload_anonymous_data'
app/controllers/application_controller.rb:417:in `preload_json'
app/controllers/application_controller.rb:397:in `block in with_resolved_locale'
app/controllers/application_controller.rb:397:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:356:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:198:in `call'

```

---

<div class="post-metadata">

**Author:** ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)\
**Post date:** [2022年二月21日 08:07 UTC](https://meta.discourse.org/t/i-dont-understand-whats-the-problem/218922/2 "2022-02-21T08:07:29Z")

</div>

您能详细说明一下您遇到的问题吗？

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2022年二月21日 08:16 UTC](https://meta.discourse.org/t/i-dont-understand-whats-the-problem/218922/3 "2022-02-21T08:16:18Z")

</div>

这是开发环境吗？看起来你还没有运行你的迁移？

---

<div class="post-metadata">

**Author:** ![Develcoder](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/develcoder/32/244725_2.png) [@Develcoder](https://meta.discourse.org/u/Develcoder)\
**Post date:** [2022年二月21日 12:07 UTC](https://meta.discourse.org/t/i-dont-understand-whats-the-problem/218922/4 "2022-02-21T12:07:16Z")

</div>

有几个插件，我没做其他操作，不知道为什么会出现这种情况

ActiveRecord::StatementInvalid (PG::UndefinedTable: 错误：关系“categories”不存在 LINE 1: SELECT “categories”.“id” FROM “categories” WHERE “categories”…

```plaintext
ActiveRecord::StatementInvalid (PG::UndefinedTable: 错误：关系“categories”不存在
LINE 1: SELECT "categories"."id" FROM "categories" WHERE "categories"...
                                      ^
)
lib/freedom_patches/fast_pluck.rb:41:in `select_raw'
lib/freedom_patches/fast_pluck.rb:59:in `pluck'
lib/guardian/category_guardian.rb:69:in `allowed_category_ids'
app/models/tag.rb:102:in `top_tags'
app/serializers/site_serializer.rb:160:in `top_tags'
(eval):20:in `_fast_attributes'
app/models/site.rb:181:in `json_for'
app/controllers/application_controller.rb:605:in `preload_anonymous_data'
app/controllers/application_controller.rb:417:in `preload_json'
app/controllers/application_controller.rb:397:in `block in with_resolved_locale'
app/controllers/application_controller.rb:397:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:356:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:198:in `call'

```

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2022年二月21日 12:16 UTC](https://meta.discourse.org/t/i-dont-understand-whats-the-problem/218922/5 "2022-02-21T12:16:19Z")

</div>

这是标准安装还是其他什么？

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2022年二月21日 12:20 UTC](https://meta.discourse.org/t/i-dont-understand-whats-the-problem/218922/6 "2022-02-21T12:20:52Z")

</div>

你为什么要重复这个错误？我们可以读第一个。请不要这样做，它已经够长了。

---

<div class="post-metadata">

**Author:** ![Develcoder](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/develcoder/32/244725_2.png) [@Develcoder](https://meta.discourse.org/u/Develcoder)\
**Post date:** [2022年二月22日 05:28 UTC](https://meta.discourse.org/t/i-dont-understand-whats-the-problem/218922/7 "2022-02-22T05:28:40Z")

</div>

我已将其安装在自己的服务器上
