500 error for latest.rss ActionView::Template::Error (undefined method `name' for nil:NilClass)

Accessing /latest.rss is resulting in 500 error with “ActionView::Template::Error (undefined method `name’ for nil:NilClass)” error shown in logs.

Instance is at running discourse v3.1.0.beta3 +272. All plugins are up to date.

More detailed info from logs page

ActionView::Template::Error (undefined method `name' for nil:NilClass)
app/views/list/list.rss.erb:18
app/views/list/list.rss.erb:13:in `each'
app/views/list/list.rss.erb:13
app/controllers/list_controller.rb:245:in `latest_feed'
app/controllers/application_controller.rb:414:in `block in with_resolved_locale'
app/controllers/application_controller.rb:414:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:74:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:369:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:228:in `call'

Backtrace

app/views/list/list.rss.erb:18
app/views/list/list.rss.erb:13:in `each'
app/views/list/list.rss.erb:13
actionview (7.0.4.3) lib/action_view/base.rb:244:in `public_send'
actionview (7.0.4.3) lib/action_view/base.rb:244:in `_run'
actionview (7.0.4.3) lib/action_view/template.rb:157:in `block in render'
activesupport (7.0.4.3) lib/active_support/notifications.rb:208:in `instrument'
actionview (7.0.4.3) lib/action_view/template.rb:361:in `instrument_render_template'
actionview (7.0.4.3) lib/action_view/template.rb:155:in `render'
rack-mini-profiler (3.0.0) lib/mini_profiler/profiling_methods.rb:85:in `block in profile_method'

Working fine with latest commit in test-passed branch as of today.

2 Likes