Oops 在更新到 discourse 2.9 后,由于 Discourse QA 插件

更新到 discourse 2.9 后,当我登录 discourse 网站时,会出现 Oops 页面。
如果不登录,一切正常。

image
重启后,只需要 1 秒,但仍然失败。

我在 rails/production.log 中发现了以下内容:

Started GET "/" for 46.223.162.135 at 2022-02-08 21:56:20 +0000
Processing by ListController#latest as HTML
Completed 500 Internal Server Error in 40ms (ActiveRecord: 0.0ms | Allocations: 12759)
NoMethodError (undefined method `>=' for nil:NilClass)
(eval):72:in `_fast_attributes'
app/controllers/application_controller.rb:605:in `preload_current_user_data'
app/controllers/application_controller.rb:411:in `preload_json'
app/controllers/application_controller.rb:387:in `block in with_resolved_locale'
app/controllers/application_controller.rb:387: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'

安全模式也出现了。

有什么我可以尝试或提供的吗?

1 个赞

删除 app.yml 中的 QA 插件后,它又能正常工作了。

2 个赞

Discourse 问答插件正在被 Discourse 团队采纳。

我建议在 @tgxworld 发布我们已准备就绪的公告之前,不要在任何地方安装它。

话虽如此,这里报告的错误很可能不再是问题。

1 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.