The user romdos reports that the /latest.rss feed is broken, showing a blank page with an error: ActionView::Template::Error (undefined method name’ for nil:NilClass)inlist.rss.erb. After troubleshooting, [romdos](/t/-/77244/3) identifies that the issue is caused by a topic created by the Babble chat plugin that lacks a category. [vinothkannans](/t/-/77244/8) explains that the error occurs because topic.categoryisnil, which leads to the namemethod being called on anilobject. The error originates from line 20 oflist.rss.erb, where the category's name is accessed without checking if the category exists. [romdos](/t/-/77244/9) confirms that deleting the problematic topic resolves the issue. The discussion highlights how a missing category in a topic can cause unexpected errors in RSS feeds, and [vinothkannans](/t/-/77244/14) clarifies that the error message, while ambiguous, points to a nil` category object.
The RSS feed URL for Latest posts (/latest.rss) no longer works, and now just shows a blank page. Looking at the error logs I found this:
ActionView::Template::Error (undefined method `name' for nil:NilClass)
/var/www/discourse/app/views/list/list.rss.erb:20:in `block in _app_views_list_list_rss_erb___410690641174059981_69912794204760'
I’ve been running the newest available version, currently at v2.0.0.beta1 +4. The issue has been ongoing for about a month or so. I do have a few plugins I use, but doubt they’re the cause:
Indeed. I deleted that topic and things are working again! To anyone else having this issue, the topic in question was created by the Babble chat plugin, which creates a topic without a category.
@vinothkannans how did you determine that was the source of the issue?
@vinothkannans I must be blind, because I don’t see how that was discerned from the error log. What line number exactly in the error log is indicating this? Thanks!
I guess what I’m asking is: how would anyone know/guess/decipher what is wrong based on that (IMHO, totally ambiguous) error message, without deep knowledge of Discourse?
undefined method 'name' (Okay there’s a undefined method called ‘name’ that is being called) for nil:NilClass (this means nothing at all to me, should it?).
How does one interpret this error as having anything to do with a topic, let alone a topic without a category?