# 禁用投票导致 500 错误

**URL:** https://meta.discourse.org/t/polls-disabled-caused-500-error/93216
**Category:** Support
**Created:** [2018年七月26日 14:38 UTC](https://meta.discourse.org/t/polls-disabled-caused-500-error/93216 "2018-07-26T14:38:41Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![some-user](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@some-user](https://meta.discourse.org/u/some-user)
#### Post date: [2018年七月26日 14:38 UTC](https://meta.discourse.org/t/polls-disabled-caused-500-error/93216/1 "2018-07-26T14:38:42Z")

</div>

I just performed a update to the latest version of discourse (test-passed). After that update, I get an error message when accessing any topic in the forum. Something that translates to: Sorry, we couldn’t load the topic – probably due to a connection error. Please try again.

The production logs keeps showing

```plaintext
Completed 500 Internal Server Error in 439ms (ActiveRecord: 425.3ms)
LocalJumpError (unexpected return)
/var/www/discourse/lib/plugin/instance.rb:188:in `block (2 levels) in topic_view_post_custom_fields_whitelister'

```

for almost all requests.

Any help would be appreciated.

Rebuilding the app did not 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: [2018年七月26日 14:39 UTC](https://meta.discourse.org/t/polls-disabled-caused-500-error/93216/2 "2018-07-26T14:39:18Z")

</div>

What plugins do you have installed?

---

<div class="post-metadata">

### Author: ![some-user](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@some-user](https://meta.discourse.org/u/some-user)
#### Post date: [2018年七月26日 14:40 UTC](https://meta.discourse.org/t/polls-disabled-caused-500-error/93216/3 "2018-07-26T14:40:17Z")

</div>

> [@david](#):
>
> What plugins do you have installed?

docker\_manager  
discourse-solved  
discourse-cakeday

---

<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: [2018年七月26日 14:48 UTC](https://meta.discourse.org/t/polls-disabled-caused-500-error/93216/5 "2018-07-26T14:48:43Z")

</div>

Do you have any other plugins installed, but disabled?

---

<div class="post-metadata">

### Author: ![some-user](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@some-user](https://meta.discourse.org/u/some-user)
#### Post date: [2018年七月26日 14:50 UTC](https://meta.discourse.org/t/polls-disabled-caused-500-error/93216/6 "2018-07-26T14:50:17Z")

</div>

> [@david](#):
>
> Do you have any other plugins installed, but disabled?

That was the list from app.yml. I don’t know any other place where plugins could be specified.

---

<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: [2018年七月26日 14:57 UTC](https://meta.discourse.org/t/polls-disabled-caused-500-error/93216/7 "2018-07-26T14:57:33Z")

</div>

I have just created a fix, it will take a few minutes to reach `tests-passed`

[https://github.com/discourse/discourse/commit/467c5299207636b2d9f966885c81d8b167283103](https://github.com/discourse/discourse/commit/467c5299207636b2d9f966885c81d8b167283103)

However, none of those three plugins make use of this particular part of the code, so I am unsure why the error is occurring for you.

@some-user it’s now in tests-passed, so please try updating again and see if that fixes the issue.

---

<div class="post-metadata">

### Author: ![some-user](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@some-user](https://meta.discourse.org/u/some-user)
#### Post date: [2018年七月26日 15:22 UTC](https://meta.discourse.org/t/polls-disabled-caused-500-error/93216/8 "2018-07-26T15:22:49Z")

</div>

> [@david](#):
>
> @some-user it’s now in tests-passed, so please try updating again and see if that fixes the issue.

Thanks for the notification 🙂 Update is installed, problem solved. Amazingly quick support. 🤩 Thank you very much!

> [@david](#):
>
> I am unsure why the error is occurring for you

If you want to look into that and I can do anything to support, let me know. But as the patient is alive again…

---

<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: [2018年七月26日 15:26 UTC](https://meta.discourse.org/t/polls-disabled-caused-500-error/93216/9 "2018-07-26T15:26:12Z")

</div>

> [@some-user](#):
>
> Update is installed, problem solved.

Good to hear 🙂

> [@some-user](#):
>
> If you want to look into that and I can do anything to support, let me know.

I have one idea - do you have the built-in “polls” plugin disabled? (check the `poll enabled` site setting). That would explain it.

---

<div class="post-metadata">

### Author: ![some-user](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@some-user](https://meta.discourse.org/u/some-user)
#### Post date: [2018年七月26日 15:32 UTC](https://meta.discourse.org/t/polls-disabled-caused-500-error/93216/10 "2018-07-26T15:32:56Z")

</div>

> [@david](#):
>
> do you have the built-in “polls” plugin disabled?

Yes, it ~~is~~ was. 😌

---

<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: [2018年七月26日 15:34 UTC](https://meta.discourse.org/t/polls-disabled-caused-500-error/93216/11 "2018-07-26T15:34:21Z")

</div>

Mystery solved! 🕵️‍♂️

(now that the bug is fixed, it is perfectly safe to leave it disabled if you want)

---

<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: [2018年七月26日 15:38 UTC](https://meta.discourse.org/t/polls-disabled-caused-500-error/93216/12 "2018-07-26T15:38:14Z")

</div>


