A user reported a 500 error after updating Discourse, with logs showing a LocalJumpError related to the topic_view_post_custom_fields_whitelister method. The issue was traced to the disabled built-in “polls” plugin, which was causing the error. David identified the problem and provided a fix in the tests-passed branch. After updating, the user confirmed the issue was resolved. David explained that the error occurred because the disabled polls plugin was interfering with the code, and confirmed it was safe to keep it disabled after the fix. The user confirmed the plugin was disabled, resolving the mystery.
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
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'