# Deprecation warnings are causing an exception

**URL:** https://meta.discourse.org/t/deprecation-warnings-are-causing-an-exception/245583
**Category:** Bug
**Created:** [November 14, 2022, 10:18pm UTC](https://meta.discourse.org/t/deprecation-warnings-are-causing-an-exception/245583 "2022-11-14T22:18:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hithere](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@hithere](https://meta.discourse.org/u/hithere)
#### Post date: [November 14, 2022, 10:18pm UTC](https://meta.discourse.org/t/deprecation-warnings-are-causing-an-exception/245583/1 "2022-11-14T22:18:12Z")

</div>

Our forum, which is hosted by Discourse, is suddenly gone - it doesn’t show any posts anymore and there’s a big JS error in the console.

Any idea what might be the issue? I was thinking it could be an issue with the theme, but I’ve checked and it’s fine as far as I can see (We still have access to the admin panel)

---

<div class="post-metadata">

### Author: ![vincentp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vincentp/32/110063_2.png) [@vincentp](https://meta.discourse.org/u/vincentp)
#### Post date: [November 14, 2022, 10:21pm UTC](https://meta.discourse.org/t/deprecation-warnings-are-causing-an-exception/245583/2 "2022-11-14T22:21:30Z")

</div>

We are seeing the same issue since updating to beta 12

---

<div class="post-metadata">

### Author: ![hithere](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@hithere](https://meta.discourse.org/u/hithere)
#### Post date: [November 14, 2022, 10:24pm UTC](https://meta.discourse.org/t/deprecation-warnings-are-causing-an-exception/245583/3 "2022-11-14T22:24:39Z")

</div>

It seems to be due to this part of the code:

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/2/7/c27b57cb5aefda9b3a9ec0d1cf671d44321e9175.png)

`options` is undefined so an exception is thrown and that crashes the whole website.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [November 14, 2022, 10:29pm UTC](https://meta.discourse.org/t/deprecation-warnings-are-causing-an-exception/245583/5 "2022-11-14T22:29:32Z")

</div>

We have a repro of the issue and will be issuing a fix shortly, thanks heaps for bringing it to our attention

---

<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: [November 14, 2022, 10:35pm UTC](https://meta.discourse.org/t/deprecation-warnings-are-causing-an-exception/245583/6 "2022-11-14T22:35:39Z")

</div>

We reverted the change via [this commit](https://github.com/discourse/discourse/commit/338901d335228944d5d1fb3675195be93ee8a1ef). Thanks @hithere for identifying the precise issue!

As an immediate workaround, [Safe Mode](https://meta.discourse.org/t/53504?silent=true) should allow you to access the affected forums. That will temporarily disable any themes/plugins which are triggering the deprecation notices.

We’ll get this fix rolled out to our hosting ASAP - very likely within the next hour.

---

<div class="post-metadata">

### Author: ![vincentp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vincentp/32/110063_2.png) [@vincentp](https://meta.discourse.org/u/vincentp)
#### Post date: [November 15, 2022, 12:05am UTC](https://meta.discourse.org/t/deprecation-warnings-are-causing-an-exception/245583/7 "2022-11-15T00:05:28Z")

</div>

Confirming the revert fixes things. Thanks for the quick response.

---

<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 21, 2022, 9:12pm UTC](https://meta.discourse.org/t/deprecation-warnings-are-causing-an-exception/245583/8 "2022-11-21T21:12:01Z")

</div>


