# Deprecation notice: \`whiteList\` has been replaced…

**URL:** https://meta.discourse.org/t/deprecation-notice-whitelist-has-been-replaced/238698
**Category:** Support
**Created:** [September 11, 2022, 4:45pm UTC](https://meta.discourse.org/t/deprecation-notice-whitelist-has-been-replaced/238698 "2022-09-11T16:45:45Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Bryan\_Joseph](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryan_joseph/32/273248_2.png) [@Bryan\_Joseph](https://meta.discourse.org/u/Bryan_Joseph)
#### Post date: [September 11, 2022, 4:45pm UTC](https://meta.discourse.org/t/deprecation-notice-whitelist-has-been-replaced/238698/1 "2022-09-11T16:45:45Z")

</div>

Is this happening to other people? Is it expected to be resolved in a later release?

```plaintext

Message (52 copies reported)

[PrettyText] Deprecation notice: `whiteList` has been replaced with `allowList` (deprecated since Discourse 2.6.0.beta.4) (removal in Discourse 2.7.0)

Backtrace

/var/www/discourse/lib/pretty_text.rb:79:in `block in create_es6_context'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.3/lib/mini_racer.rb:273:in `block in attach'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.3/lib/mini_racer.rb:228:in `eval_unsafe'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.3/lib/mini_racer.rb:228:in `block (2 levels) in eval'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.3/lib/mini_racer.rb:369:in `timeout'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.3/lib/mini_racer.rb:227:in `block in eval'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.3/lib/mini_racer.rb:225:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/mini_racer-0.6.3/lib/mini_racer.rb:225:in `eval'
/var/www/discourse/lib/pretty_text.rb:234:in `block in markdown'
/var/www/discourse/lib/pretty_text.rb:597:in `block in protect'

```

It’s been filling up my logs:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/b/d/7bdbdaa5dffd230432fb96c746f73bbd02ee9944.jpeg)

---

<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: [September 11, 2022, 5:13pm UTC](https://meta.discourse.org/t/deprecation-notice-whitelist-has-been-replaced/238698/2 "2022-09-11T17:13:55Z")

</div>

I believe that’s coming from a theme component or plugin. I’m pretty sure that it’s been updated in all official plugins and theme components.

---

<div class="post-metadata">

### Author: ![Bryan\_Joseph](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryan_joseph/32/273248_2.png) [@Bryan\_Joseph](https://meta.discourse.org/u/Bryan_Joseph)
#### Post date: [September 11, 2022, 6:03pm UTC](https://meta.discourse.org/t/deprecation-notice-whitelist-has-been-replaced/238698/3 "2022-09-11T18:03:31Z")

</div>

I see. Can’t seem to be able to track it by the logs. I’ll have to play wack a mole later. Thanks again for your help 😊

---

<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: [September 11, 2022, 6:10pm UTC](https://meta.discourse.org/t/deprecation-notice-whitelist-has-been-replaced/238698/4 "2022-09-11T18:10:50Z")

</div>

The same message should appear in the browser JS console when you create/reply to a topic. In theory, that browser console message should tell you the name of the plugin triggering the message 🤞

---

<div class="post-metadata">

### Author: ![Bryan\_Joseph](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryan_joseph/32/273248_2.png) [@Bryan\_Joseph](https://meta.discourse.org/u/Bryan_Joseph)
#### Post date: [September 11, 2022, 6:25pm UTC](https://meta.discourse.org/t/deprecation-notice-whitelist-has-been-replaced/238698/5 "2022-09-11T18:25:41Z")

</div>

Oh nice. I’ll try that now.

---

<div class="post-metadata">

### Author: ![Bryan\_Joseph](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryan_joseph/32/273248_2.png) [@Bryan\_Joseph](https://meta.discourse.org/u/Bryan_Joseph)
#### Post date: [September 11, 2022, 6:41pm UTC](https://meta.discourse.org/t/deprecation-notice-whitelist-has-been-replaced/238698/6 "2022-09-11T18:41:27Z")

</div>

Well, that was easy to debug. Added a couple of breakpoints and I believe I found the culprit:

> [@Elections Plugin](https://meta.discourse.org/t/elections-plugin/68521):
>
> Repo: [GitHub - angusmcleod/discourse-elections · GitHub](https://github.com/angusmcleod/discourse-elections) This uses the Polls plugin as a base and adds controls and features specific to running elections. Enabling and Settings Elections are administered by “Election Admins”. By default, election admins are site admins. All moderators can be made election admins by toggling the elections\_admin\_moderator site setting. To do: allow any user to be designated an ‘Election Admin’. Elections can be enabled on a category basis in Category Setting…

I’ll message the dev to let em know the plugin is throwing errors and shit:

 ![Screen Shot 2022-09-11 at Sunday, September 11, 2022 11.27 AM 1](https://global.discourse-cdn.com/meta/original/4X/c/2/7/c2716238eb909645676a6ccabafffda0a1eb8629.jpeg)

---

<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: [October 11, 2022, 6:42pm UTC](https://meta.discourse.org/t/deprecation-notice-whitelist-has-been-replaced/238698/7 "2022-10-11T18:42:16Z")

</div>

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