# Discourse-events 'this.router' error

**URL:** https://meta.discourse.org/t/discourse-events-this-router-error/376145
**Category:** Support
**Created:** [July 28, 2025, 9:03am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145 "2025-07-28T09:03:33Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [July 28, 2025, 9:03am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145/1 "2025-07-28T09:03:33Z")

</div>

> [@Upcoming post stream changes - How to prepare themes and plugins](https://meta.discourse.org/t/upcoming-post-stream-changes-how-to-prepare-themes-and-plugins/372063/6):
>
> If you encounter any issues, please report them below

on my admin dashboard of Discourse instance, where only Discourse is 8 commits behind

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/d/8/cd8559fd2564c28329b9d689f2e0c7295fe8d486.png)

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [July 28, 2025, 9:08am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145/2 "2025-07-28T09:08:50Z")

</div>

Hi @ethsim2, could you describe the problem you’re facing here?

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [July 28, 2025, 9:13am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145/3 "2025-07-28T09:13:18Z")

</div>

discourse-locations [Locations Plugin 🌍](https://meta.discourse.org/t/locations-plugin/69742) is not a official plugin, I took a quick look and it does contain deprecated API. I guess you should make an update request to the plugin author

---

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [July 28, 2025, 9:13am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145/4 "2025-07-28T09:13:53Z")

</div>

it’s the same error, reported below;

> [@Events Plugin calendar](https://meta.discourse.org/t/events-plugin/69776/880):
>
> before updating discourse, i had the same problem as before, and then same problem again after enabling “Custom Header Links (Icons)” after updating

but replicating on Desktop this is

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/9/1/d91a4d4feae4e6e5b16e74bb4250be9c94d72ae7.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/1/b/d/1bd8a3a2e3244a00055830767621ab09bd5d306a.png)

---

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [July 28, 2025, 9:14am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145/5 "2025-07-28T09:14:51Z")

</div>

> [@Lhc\_fl](#):
>
> discourse-locations [Locations Plugin 🌍](https://meta.discourse.org/t/locations-plugin/69742) is not a official plugin, I took a quick look and it does contain deprecated API. I guess you should make an update request to the plugin author

Locations is the plugin where i can still access it’s admin UI,

Plugin Author has been quite active on Meta recently

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [July 28, 2025, 9:15am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145/6 "2025-07-28T09:15:44Z")

</div>

Pardon me if I’m ignorant, but how is this relevant to this post stream change?

---

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [July 28, 2025, 9:17am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145/7 "2025-07-28T09:17:14Z")

</div>

> [@Ethsim2](#):
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/d/9/1/d91a4d4feae4e6e5b16e74bb4250be9c94d72ae7.png)

```plaintext
deprecation id: discourse-post-stream-widget-overrides

```

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [July 28, 2025, 9:19am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145/8 "2025-07-28T09:19:27Z")

</div>

Oh, I see, but this is a deprecation related to [Upcoming topic-list changes - how to prepare themes and plugins](https://meta.discourse.org/t/upcoming-topic-list-changes-how-to-prepare-themes-and-plugins/343404), not the post stream change.

---

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [July 28, 2025, 9:30am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145/9 "2025-07-28T09:30:29Z")

</div>

okay i’ll update discourse and then post in there if still have same UI issue with [discourse-events](https://meta.discourse.org/t/events-plugin/69776)

Edit: UI issue exists but discussion momentum is still here

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [July 28, 2025, 9:32am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145/10 "2025-07-28T09:32:27Z")

</div>

I took a quick look and I believe the discourse-events plugin uses deprecated code. I recommend disabling it.

> <https://github.com/angusmcleod/discourse-events/blob/main/assets/javascripts/discourse/helpers/event-label.js#L5>

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [July 28, 2025, 9:36am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145/11 "2025-07-28T09:36:17Z")

</div>

Yellow deprecation warnings should not cause errors on a site, so there is no need to disable the plugin because of those. Deprecation warnings are just there to warn developers about future changes.

The `this.router` error in the screenshot is unrelated to the post-stream deprecations, so I’m going to move this discussion into its own topic, and then close it since the issue is already reported over in [the plugin’s own topic](https://meta.discourse.org/t/events-plugin/69776/880).

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [July 28, 2025, 9:37am UTC](https://meta.discourse.org/t/discourse-events-this-router-error/376145/12 "2025-07-28T09:37:30Z")

</div>


