Latest.rss no longer works when using Babble


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'

Here is the full text of the error log for this:

(Bhanu Sharma) #2

Are You on the latest version?

Seems Specific to Your forum. Can’t repro this either on meta or on my own sandbox!


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:


    - exec:
        cd: $home/plugins
          - git clone
          - git clone
          - git clone
          - git clone
          - git clone
          - git clone
          - git clone
          - git clone

(Bhanu Sharma) #4

Shouldn't it be - git clone instead?


Good catch! I’ll change that now and rebuild…

Update: that wasn’t it… Trying now with all plugins disabled.


Same issue with all plugins disabled (except docker_manager). :confused:

(Bhanu Sharma) #7

Perhaps this is beyond my understanding now. I hope someone more experienced may be able to help You with a better solution.

(Vinoth Kannan) #8

Looks like this topic is the cause of the issue.


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?

(Vinoth Kannan) #10

As per your error log one of your topic having null category value.


@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!

(Vinoth Kannan) #12

As per the first and second lines undefined method 'name' for nil:NilClass.


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?

(Vinoth Kannan) #14

As I mentioned you should look at second line too. Error is coming from this line. So the topic.category should be nil.