Internal Server Error when editing users posts after update

AI-generated summary

After updating to v2.2.0.beta6, the ability to edit user posts resulted in an Internal Server Error. The issue was traced back to the Discourse Poll plugin. Garrick encountered the error and noted that disabling the plugin in the admin section did not resolve the issue. Falco advised to remove the discourse-elections plugin from the app.yml and rebuild, which Garrick successfully did to resolve the problem.

Just updated today ( v2.2.0.beta6 +5

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?

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

Thanks Falco. Just did it.