用户无法看到他的个人消息

论坛所有参与者和 Discourse 团队,大家好!

我的网站上发生了一个未指定的错误。用户或网站员工(管理员除外)看不到他们的私人消息。私人消息的标题会出现在通用消息列表中,但点击链接无法打开完整内容。我尝试禁用所有插件和主题组件,甚至尝试删除所有 CSS,但都没有帮助。这是它的显示方式:

这是用户尝试刷新浏览器页面时显示的内容:

这是控制台屏幕:

您可以在 /logs 页面查看更多详细信息。能否请您检查一下并将信息粘贴到这里的代码块中?

2 个赞

您是通过设置禁用插件,还是从 yml 文件中移除插件并重新构建?如果您没有移除并重新构建,您应该这样做。

1 个赞

Sorry for the long response :pray: That’s all there was:

Deprecation notice: Array types for custom fields are deprecated, use type :json instead (removal in Discourse 3.3.0) At /var/www/discourse/lib/plugin/instance.rb:561:in `block in register_topic_cust

24 Nov 9:33 pm

Deprecation notice: Array types for custom fields are deprecated, use type :json instead (removal in Discourse 3.3.0) At /var/www/discourse/lib/plugin/instance.rb:576:in `block in register_user_custo

24 Nov 9:33 pm

Deprecation notice: Array types for custom fields are deprecated, use type :json instead (removal in Discourse 3.3.0) At /var/www/discourse/lib/plugin/instance.rb:566:in `block in register_post_custo

24 Nov 9:33 pm

Deprecation notice: add_to_serializer's respect_plugin_enabled argument should be passed as a keyword argument At /var/www/discourse/plugins/discourse-category-lockdown/plugin.rb:21:in `block in acti

24 Nov 9:33 pm

Deprecation notice: add_to_serializer should not be used to directly override include_*? methods. Use the include_condition keyword argument instead At /var/www/discourse/plugins/discourse-custom-wiz

24 Nov 9:33 pm

Deprecation notice: add_to_serializer should not be used to directly override include_*? methods. Use the include_condition keyword argument instead At /var/www/discourse/plugins/discourse-custom-wiz

24 Nov 9:33 pm

Deprecation notice: add_to_serializer's respect_plugin_enabled argument should be passed as a keyword argument At /var/www/discourse/plugins/discourse-ratings/plugin.rb:202:in `block in activate!`

24 Nov 9:33 pm

Deprecation notice: add_to_serializer should not be used to directly override include_*? methods. Use the include_condition keyword argument instead At /var/www/discourse/plugins/discourse-ratings/pl

24 Nov 9:33 pm

Deprecation notice: add_to_serializer should not be used to directly override include_*? methods. Use the include_condition keyword argument instead At /var/www/discourse/plugins/discourse-ratings/pl

24 Nov 9:33 pm

Deprecation notice: Array types for custom fields are deprecated, use type :json instead (removal in Discourse 3.3.0) At /var/www/discourse/lib/plugin/instance.rb:556:in `block in register_category_c

24 Nov 9:33 pm

Deprecation notice: The :post_notification_alert event is deprecated. Please use :push_notification instead (deprecated since Discourse 3.2.0.beta1) (removal in Discourse 3.3.0.beta1) At /var/www/dis

24 Nov 9:33 pm

4

ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR: column "thread_id" does not exist LINE 1: ..._drafts"."chat_channel_id", "chat_drafts"."data", "thread_id...

24 Nov 10:45 pm

4

Failed to handle exception in exception app middleware : ActiveRecord::StatementInvalid : PG::UndefinedColumn: ERROR: column "thread_id" does not exist LINE 1: ..._drafts"."chat_channel_id", "chat_dr

24 Nov 10:45 pm

17

Clearing Active Record cache, this can happen if schema changed while site is running or in a multisite various databases are running different schemas. Consider running rake multisite:migrate.

24 Nov 10:45 pm

11

ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR: column "thread_id" does not exist LINE 1: ..._drafts"."chat_channel_id", "chat_drafts"."data", "thread_id...

24 Nov 10:45 pm

11

Failed to handle exception in exception app middleware : ActiveRecord::StatementInvalid : PG::UndefinedColumn: ERROR: column "thread_id" does not exist LINE 1: ..._drafts"."chat_channel_id", "chat_dr

24 Nov 10:45 pm

3

[Telegram Bridge] Failed to bridge message: [1/12] [policy] 'require_plugin_enabled' ✅ [2/12] [contract] 'default' ✅ [3/12] [model] 'channel_id' ❌ [4/12] [policy] 'require_channel_id_vaild' [5/12] [p

25 Nov 12:49 am

[Telegram Bridge] Failed to bridge message: [1/12] [policy] 'require_plugin_enabled' ✅ [2/12] [contract] 'default' ✅ [3/12] [model] 'channel_id' ❌ [4/12] [policy] 'require_channel_id_vaild' [5/12] [p

25 Nov 12:49 am

24

Can not rebake post# 612 after 3 attempts, giving up : ActiveRecord::RecordNotFound : Couldn't find Topic with 'id'=137 [WHERE "topics"."deleted_at" IS NULL]

25 Nov 1:24 am

24

Job exception: Couldn't find Topic with 'id'=137 [WHERE "topics"."deleted_at" IS NULL]

25 Nov 1:24 am

4

Deprecation notice: add_to_serializer's respect_plugin_enabled argument should be passed as a keyword argument At /var/www/discourse/plugins/discourse-ai-topic-summary/plugin.rb:32:in `block in activ

25 Nov 8:45 pm

5

Deprecation notice: Array types for custom fields are deprecated, use type :json instead (removal in Discourse 3.3.0) At /var/www/discourse/lib/plugin/instance.rb:561:in `block in register_topic_cust

25 Nov 8:45 pm

5

Deprecation notice: Array types for custom fields are deprecated, use type :json instead (removal in Discourse 3.3.0) At /var/www/discourse/lib/plugin/instance.rb:576:in `block in register_user_custo

25 Nov 8:45 pm

5

Deprecation notice: Array types for custom fields are deprecated, use type :json instead (removal in Discourse 3.3.0) At /var/www/discourse/lib/plugin/instance.rb:566:in `block in register_post_custo

25 Nov 8:45 pm

4

Deprecation notice: add_to_serializer's respect_plugin_enabled argument should be passed as a keyword argument At /var/www/discourse/plugins/discourse-category-lockdown/plugin.rb:21:in `block in acti

25 Nov 8:45 pm

4

Deprecation notice: add_to_serializer should not be used to directly override include_*? methods. Use the include_condition keyword argument instead At /var/www/discourse/plugins/discourse-custom-wiz

25 Nov 8:45 pm

4

Deprecation notice: add_to_serializer should not be used to directly override include_*? methods. Use the include_condition keyword argument instead At /var/www/discourse/plugins/discourse-custom-wiz

25 Nov 8:45 pm

4

Deprecation notice: add_to_serializer's respect_plugin_enabled argument should be passed as a keyword argument At /var/www/discourse/plugins/discourse-ratings/plugin.rb:202:in `block in activate!`

25 Nov 8:45 pm

4

Deprecation notice: add_to_serializer should not be used to directly override include_*? methods. Use the include_condition keyword argument instead At /var/www/discourse/plugins/discourse-ratings/pl

25 Nov 8:45 pm

4

Deprecation notice: add_to_serializer should not be used to directly override include_*? methods. Use the include_condition keyword argument instead At /var/www/discourse/plugins/discourse-ratings/pl

25 Nov 8:45 pm

5

Deprecation notice: Array types for custom fields are deprecated, use type :json instead (removal in Discourse 3.3.0) At /var/www/discourse/lib/plugin/instance.rb:556:in `block in register_category_c

25 Nov 8:45 pm

4

Deprecation notice: The :post_notification_alert event is deprecated. Please use :push_notification instead (deprecated since Discourse 3.2.0.beta1) (removal in Discourse 3.3.0.beta1) At /var/www/dis

25 Nov 8:45 pm

298

Sidekiq is consuming too much memory (using: 679.16M) for 'neurogid.com', restarting

25 Nov 11:27 pm

Deprecation notice: the :meta_data param is deprecated, use the :topic_custom_fields param instead (deprecated since Discourse 3.2) (removal in Discourse 3.3) At <internal:kernel>:90:in `tap`

25 Nov 11:37 pm

8

MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-City.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-City.mmdb

25 Nov 11:44 pm

8

MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-ASN.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-ASN.mmdb

25 Nov 11:44 pm

16

MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-City.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-City.mmdb

25 Nov 11:45 pm

16

MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-ASN.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-ASN.mmdb

25 Nov 11:45 pm

2

[Telegram Bridge] Failed to bridge message: [1/12] [policy] 'require_plugin_enabled' ✅ [2/12] [contract] 'default' ✅ [3/12] [model] 'channel_id' ❌ [4/12] [policy] 'require_channel_id_vaild' [5/12] [p

Su 9:20 am

3

[Telegram Bridge] Failed to bridge message: [1/12] [policy] 'require_plugin_enabled' ✅ [2/12] [contract] 'default' ✅ [3/12] [model] 'channel_id' ❌ [4/12] [policy] 'require_channel_id_vaild' [5/12] [p

Su 3:30 pm

17

Job exception: undefined method `include?' for nil:NilClass

12:24 am

20

OpenAIBot Post Embedding: There was a problem, but will retry til limit: undefined method `destroy!' for nil:NilClass

10:25 am

3

[Telegram Bridge] Failed to bridge message: [1/12] [policy] 'require_plugin_enabled' ✅ [2/12] [contract] 'default' ✅ [3/12] [model] 'channel_id' ❌ [4/12] [policy] 'require_channel_id_vaild' [5/12] [p

11:11 am

[Telegram Bridge] Failed to bridge message: [1/12] [policy] 'require_plugin_enabled' ✅ [2/12] [contract] 'default' ✅ [3/12] [model] 'channel_id' ❌ [4/12] [policy] 'require_channel_id_vaild' [5/12] [p

11:38 am

27

NoMethodError (undefined method `enable_personal_messages?' for SiteSetting:Class) app/serializers/topic_view_details_serializer.rb:127:in `include_can_invite_to?' (eval):11:in `_fast_attributes' lib/

2:20 pm

6

NoMethodError (undefined method `enable_personal_messages?' for SiteSetting:Class) app/serializers/topic_view_details_serializer.rb:127:in `include_can_invite_to?' (eval):11:in `_fast_attributes' lib/

2:20 pm

[Telegram Bridge] Failed to bridge message: [1/12] [policy] 'require_plugin_enabled' ✅ [2/12] [contract] 'default' ✅ [3/12] [model] 'channel_id' ❌ [4/12] [policy] 'require_channel_id_vaild' [5/12] [p

4:22 pm

2

[Telegram Bridge] Failed to bridge message: [1/12] [policy] 'require_plugin_enabled' ✅ [2/12] [contract] 'default' ✅ [3/12] [model] 'channel_id' ❌ [4/12] [policy] 'require_channel_id_vaild' [5/12] [p

5:31 pm

93

Job exception: undefined method `include?' for nil:NilClass

5:58 pm

275

Job exception: undefined method `include?' for nil:NilClass

6:14 pm

是的,我通过管理员设置禁用了插件。

理想情况下,您需要点击与问题相关的特定错误并复制消息在此处粘贴。一个可能的错误是:

NoMethodError (undefined method `enable_personal_messages?' for SiteSetting:Class) app/serializers/topic_view_details_serializer.rb:127:in `include_can_invite_to?' (eval):11:in `_fast_attributes' lib/\n```

不过,如果您有任何影响私信的第三方插件,那将是一个可能的起点。正如 Pfaffman 所说,有时安全模式是不够的,您需要从 `app.yml` 中删除该插件并重建。您的网站上有哪些插件?
1 个赞

这不足以完全禁用许多插件。您需要注释掉 app.yml 中的插件并重建。

这将是一个问题,但现在可能还不是。

您是否正在运行多站点?

您是否安装了旧的聊天插件(它现在已合并到核心中)?

您应该列出您正在使用的插件。

1 个赞

以下是已安装在网站上的插件:






同样,@pfaffman,我本人也不是程序员,我可能会错误地理解您的一些话。因此,我决定将此主题的链接分享给我的程序员。

1 个赞

我认为这很可能是 Custom Trust Level 插件。我想之前其他人也遇到过类似的问题:

您(或您的开发人员)需要从您的 app.yml 中移除该插件并重新构建。希望这能解决所有问题。:crossed_fingers:

4 个赞

36个插件数量很多。请注意,即使禁用了插件,它们仍可能对您的网站产生影响。您的开发人员在实施此修复程序时,我还会建议他们注释掉任何未激活且正在使用的插件。

1 个赞

FWIW,我认为我们的商业计划附带大约 31 个(但都是#官方的,所以可能不太令人担心)。

1 个赞

您好!是的,您说对了 :100: 问题是由 自定义信任级别 插件引起的。我们的程序员按照您和 @pfaffman 的建议进行了操作,非常感谢你们两位的出色支持 :pray:

是的,您可能是对的,我明白插件太多了,将来(在任何更新期间)可能会出现错误。但是,我刚刚开始一个新的人工智能项目,我想测试所有插件,以便了解哪些插件对我的项目真正有用,哪些以后我不需要。

3 个赞

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