# Internal Server Error when editing users posts after update

**URL:** https://meta.discourse.org/t/internal-server-error-when-editing-users-posts-after-update/104445
**Category:** Support
**Created:** [December 17, 2018, 1:42am UTC](https://meta.discourse.org/t/internal-server-error-when-editing-users-posts-after-update/104445 "2018-12-17T01:42:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Garrick](https://avatars.discourse-cdn.com/v4/letter/g/b9bd4f/32.png) [@Garrick](https://meta.discourse.org/u/Garrick)
#### Post date: [December 17, 2018, 1:42am UTC](https://meta.discourse.org/t/internal-server-error-when-editing-users-posts-after-update/104445/1 "2018-12-17T01:42:44Z")

</div>

Just updated today ( [v2.2.0.beta6 +5](https://github.com/discourse/discourse/compare/6213e020e61b80963e0449fa02a66a973c1e8611...tests-passed)

and now my staff nor I cant edit posts. If we try too then we get an internal server error and it doesnt go thru.

```
7 		
NameError (uninitialized constant DiscoursePoll::POLLS_CUSTOM_FIELD Did you mean? PostCustomField) /var/www/discourse/plugins/discourse-elections/lib/poll_edits.rb:6:in `update'
	5:13 pm
32 		
NameError (uninitialized constant DiscoursePoll::POLLS_CUSTOM_FIELD Did you mean? PostCustomField) /var/www/discourse/plugins/discourse-elections/lib/poll_edits.rb:6:in `update'
	5:20 pm
4 		
NameError (uninitialized constant DiscoursePoll::POLLS_CUSTOM_FIELD Did you mean? PostCustomField) /var/www/discourse/plugins/discourse-elections/lib/poll_edits.rb:6:in `update'
	5:37 pm 

```

Going thru the error logs it looks like this is the poll plugin. We have a number of active polls on the site right now. If we remove this, what happens to the polls that are posted?

Edit: I unenabled the plugin from the admin section but still gives the error. Guessing I need to remove from the app.yaml and rebuild?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 17, 2018, 3:22am UTC](https://meta.discourse.org/t/internal-server-error-when-editing-users-posts-after-update/104445/2 "2018-12-17T03:22:04Z")

</div>

> [@Garrick](#):
>
> Guessing I need to remove from the app.yaml and rebuild?

Exactly that. Remove the discourse-elections plugin from the app.yml, rebuild and the site will be back.

---

<div class="post-metadata">

### Author: ![Garrick](https://avatars.discourse-cdn.com/v4/letter/g/b9bd4f/32.png) [@Garrick](https://meta.discourse.org/u/Garrick)
#### Post date: [December 17, 2018, 1:52pm UTC](https://meta.discourse.org/t/internal-server-error-when-editing-users-posts-after-update/104445/5 "2018-12-17T13:52:57Z")

</div>

Thanks Falco. Just did it.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [December 18, 2018, 3:21pm UTC](https://meta.discourse.org/t/internal-server-error-when-editing-users-posts-after-update/104445/6 "2018-12-18T15:21:18Z")

</div>


