# TypeError: this.model is undefined for anonymous user when loading topic

**URL:** https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748
**Category:** Support
**Created:** [February 1, 2024, 7:37am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748 "2024-02-01T07:37:26Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![INSTAR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/instar/32/359540_2.png) [@INSTAR](https://meta.discourse.org/u/INSTAR)
#### Post date: [February 1, 2024, 7:37am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748/1 "2024-02-01T07:37:26Z")

</div>

Hello,

I have run into an issue after the latest update `3.3.0.beta1-dev`. The update ran without a hitch and everything looks OK - as long as you are logged in.

For anonymous users the start page looks fine. But there is an issue loading a topics body - you can see the title, the scrollbar is there to scroll through all the posts, but the text is not beeing loaded:

 ![2024-02-01_15-34](https://global.discourse-cdn.com/meta/original/4X/c/b/a/cba0947bfb850c35f709b516afb772ee8b637596.png)

The error message I can see in my Browser console is:

> **Chrome** :  
> `retort.js:48 Uncaught TypeError: Cannot read properties of undefined (reading 'postStream')`

> Firefox  
> `Uncaught (in promise) TypeError: this.model is undefined`

Complete trace:

> <https://gist.github.com/mpolinowski/ebf38b81998d7bdbac6a02c705254e53>

Can someone point me in a direction on how to fix this issue?

---

<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: [February 1, 2024, 7:40am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748/2 "2024-02-01T07:40:59Z")

</div>

I’m afraid [Retort](https://meta.discourse.org/t/retort-a-reaction-style-plugin-for-discourse/35903) is currently broken and would need to be removed from your `app.yml` before rebuilding your site again.

---

<div class="post-metadata">

### Author: ![INSTAR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/instar/32/359540_2.png) [@INSTAR](https://meta.discourse.org/u/INSTAR)
#### Post date: [February 1, 2024, 7:45am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748/3 "2024-02-01T07:45:45Z")

</div>

Thank you for your reply!

Do you know if this might break something? Or will the Emote Reactions just disappear from posts?

---

<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: [February 1, 2024, 7:48am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748/4 "2024-02-01T07:48:05Z")

</div>

The data should remain in the backend, but all the functionality will be removed. So the emote reactions will not be displayed on the posts, but if it gets fixed and reinstalled they should then come back again:

> [@Support multiple-reactions per post (Retort style)](https://meta.discourse.org/t/support-multiple-reactions-per-post-retort-style/235064/39):
>
> Indeed. Retort work is actively underway. I should be testing with @merefield soon! 🙂

---

<div class="post-metadata">

### Author: ![INSTAR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/instar/32/359540_2.png) [@INSTAR](https://meta.discourse.org/u/INSTAR)
#### Post date: [February 1, 2024, 8:10am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748/5 "2024-02-01T08:10:32Z")

</div>

Thanks again - rebuild worked and looks like the issue is resolved 😀

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [February 1, 2024, 9:03am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748/6 "2024-02-01T09:03:07Z")

</div>

> [@Discourse Retort](https://meta.discourse.org/t/retort-a-reaction-style-plugin-for-discourse/35903/481):
>
> With huge thanks pray to the sponsorship of @Hifihedgehog and the community of: [https://forum.tabletpc.review/](https://forum.tabletpc.review/) This has been brought back into compatibility and is no longer broken with 3.2. NB: as per The Team and Sam, it is intended that the Reactions plugin will take on the additional features of this plugin (mainly the ability for multiple reactions) at some point in the future and hopefully (not yet confirmed) this will include provision of a migration tool.

---

<div class="post-metadata">

### Author: ![INSTAR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/instar/32/359540_2.png) [@INSTAR](https://meta.discourse.org/u/INSTAR)
#### Post date: [February 1, 2024, 9:04am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748/7 "2024-02-01T09:04:26Z")

</div>

I just got pinged as well 😀

But I think I will go with the named alternative then:

> [@Discourse Reactions](https://meta.discourse.org/t/discourse-reactions/183261):
>
> discourse2Summary Discourse Reactions allows users to React to a post from a choice of emojis, rather than only the Like heart. The available emoji selection can be set from the admin settings.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Bored of likes in discourse? Here’s something you will definitely love. Overview Discourse-reactions is a plugin that allows user to add their reactions to the pos…

---

<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: [February 1, 2024, 9:04am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748/8 "2024-02-01T09:04:42Z")

</div>

I’m going to be looking after this plugin for a short time, so I’ll take a look!

---

<div class="post-metadata">

### Author: ![INSTAR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/instar/32/359540_2.png) [@INSTAR](https://meta.discourse.org/u/INSTAR)
#### Post date: [February 1, 2024, 10:16am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748/9 "2024-02-01T10:16:36Z")

</div>

> [@merefield](#):
>
> I’m going to be looking after this plugin for a short time

But the recommendation to switch is valid? I liked Retort 😀 would not change otherwise.

---

<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: [February 1, 2024, 10:59am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748/10 "2024-02-01T10:59:02Z")

</div>

I’ve raised a PR to Retort to fix the issue (and another I discovered).

The advice remains the same, its up to you when to switch.

---

<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: [February 1, 2024, 11:03am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748/11 "2024-02-01T11:03:56Z")

</div>

PR has been merged (thanks @angus)

---

<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: [March 2, 2024, 11:04am UTC](https://meta.discourse.org/t/typeerror-this-model-is-undefined-for-anonymous-user-when-loading-topic/293748/12 "2024-03-02T11:04:57Z")

</div>

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