# The user cannot see his personal message

**URL:** https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696
**Category:** Support
**Tags:** personal-messages
**Created:** [November 27, 2023, 8:23am UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696 "2023-11-27T08:23:09Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [November 27, 2023, 8:23am UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/1 "2023-11-27T08:23:09Z")

</div>

Greetings to all forum participants and the Discourse team!  
An unspecified error has occurred on my site. A user or site employee (except the administrator) cannot see his personal message. The title of a private message appears in the general list of messages, but clicking on the link does not open the full content. I tried disabling all plugins and theme components, even tried removing all CSS, but nothing helped. This is how it is written:

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/3/2/a321915f21a50f9e579393ffd52d4afa3deb83f4.png)

This is what is shown when the user tries to refresh the browser page:

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/9/b/a9bc2cde31939463d2168feb961c6c78e0864ad7.png)

Here is the console screen:

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/8/8/0889319b2adb390fc9db9fbfb19abd0e1dc133a7.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [November 27, 2023, 8:33am UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/2 "2023-11-27T08:33:48Z")

</div>

There may be more detail if you check your `/logs` page. Could you check in there and paste the info here in a code block?

---

<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: [November 27, 2023, 11:46am UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/3 "2023-11-27T11:46:19Z")

</div>

Did you disable the plugins via the settings or remove them from the yml and rebuild? If you didn’t remove and rebuild, you should do that.

---

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [November 27, 2023, 12:18pm UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/4 "2023-11-27T12:18:48Z")

</div>

> [@JammyDodger](#):
>
> /logs

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

```plaintext
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

```

---

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [November 27, 2023, 12:21pm UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/5 "2023-11-27T12:21:17Z")

</div>

> [@pfaffman](#):
>
> Did you disable the plugins via the settings

Yes, I disabled plugins through the admin settings.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [November 27, 2023, 1:23pm UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/6 "2023-11-27T13:23:22Z")

</div>

Ideally, you would need to click on the specific error relevant to the issue and copy the message to paste here. A likely one could be:

```plaintext
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/

```

Though if you have any third-party plugins that affect PMs then that would be a probable place to start. As Pfaffman says, sometimes [safe mode](https://meta.discourse.org/t/53504?silent=true) isn’t enough and you would have to remove the plugin from your `app.yml` and rebuild. What plugins do you have on your site?

---

<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: [November 27, 2023, 1:33pm UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/7 "2023-11-27T13:33:05Z")

</div>

> [@Aizada\_M](#):
>
> Yes, I disabled plugins through the admin settings.

That is not sufficient to completely disable many plugins. You need to comment them out in your app.yml and rebuild.

> [@Aizada\_M](#):
>
> ```plaintext
> 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
> 
> ```

That’s going to be a problem, but likely isn’t yet.

> [@Aizada\_M](#):
>
> ```plaintext
> ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR: column "thread_id" does not exist LINE 1: ..._drafts"."chat_channel_id", "chat_drafts"."data", "thread_id...
> 
> ```

> [@Aizada\_M](#):
>
> ```plaintext
> 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.
> 
> ```

Are you running multisite?

Do you have the old chat plugin installed (it has now been merged into core).

You should include the list of plugins that you’re using.

---

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [November 28, 2023, 1:40pm UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/8 "2023-11-28T13:40:04Z")

</div>

> [@JammyDodger](#):
>
> What plugins do you have on your site?

Here are the plugins that have been installed on the website:

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/4/6/c466069cf602597afb080d7bf768167cd422b38c.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/0/7/a/07a40dcbb3f8de1543a0939c81c645528ad13877.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/f/e/6/fe68f1bcfe7e7b7b7681cd245de6a414f33e97b4.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/f/1/e/f1eb2876d783af0011703653991658a0507caa0b.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/0/6/4/064e670d4c7d0c32ba2fde923ae36bbd57f12dd1.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/9/c/d/9cd295cd83d0abd70c32c35d26026eacb6bb7aca.png)

Similarly, @pfaffman, I am not a programmer myself, and I may incorrectly interpret some of your words. Therefore, I decided to share the link to this topic with my programmer.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [November 28, 2023, 2:23pm UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/9 "2023-11-28T14:23:43Z")

</div>

I think it’s likely the [Custom Trust Level](https://meta.discourse.org/t/custom-trust-level/147253) plugin. I think someone else had a similar issue with that a little while back:

> [@Our PMs stopped working](https://meta.discourse.org/t/our-pms-stopped-working/274755):
>
> It seems I can’t see the 'enable\_private\_messages" option anymore on our admin panel. Only admin accounts can read PMs. Logs: 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/freedom_patches/ams_include_without_root.rb:57:in `include!' app/controllers/application\_controller.rb:551:in `render\_json\_dump' app/controllers/topics\_controller.rb:1332:…

You (or your developer) would need to remove that plugin from your `app.yml` and rebuild without it. Hopefully that should make everything come good. 🤞

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [November 28, 2023, 2:39pm UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/10 "2023-11-28T14:39:29Z")

</div>

36 plugins is a lot. Be aware that even if they’re disabled they can still have an impact on your site. When your developer is implementing this fix I would also recommend having them comment out any plugin which isn’t active and in use.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [November 28, 2023, 4:59pm UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/11 "2023-11-28T16:59:01Z")

</div>

FWIW, I think our Business plan comes bundled with around 31 (all #official though, so probably less of a worry).

---

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [November 29, 2023, 12:52pm UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/12 "2023-11-29T12:52:38Z")

</div>

> [@JammyDodger](#):
>
> I think it’s likely the [Custom Trust Level](https://meta.discourse.org/t/custom-trust-level/147253) plugin.

Hello! Yes, you were right 💯 The problem was caused by the [Custom Trust Level](https://meta.discourse.org/t/custom-trust-level/147253) plugin. Our programmer did as you and @pfaffman advised, very grateful to both of you for the excellent support 🙏

> [@Stephen](#):
>
> 36 plugins is a lot.

Yes, you may be right, I understand that there are too many plugins and in the future (during any updates) errors may occur. But, I’m just starting a new project with AI and I want to test all the plugins in order to understand which of them will be really useful for my project, and which ones I won’t need later.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 29, 2023, 12:53pm UTC](https://meta.discourse.org/t/the-user-cannot-see-his-personal-message/286696/13 "2023-12-29T12:53:01Z")

</div>

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