# RSS is not valid

**URL:** https://meta.discourse.org/t/rss-is-not-valid/24338
**Category:** Support
**Created:** [January 23, 2015, 4:50am UTC](https://meta.discourse.org/t/rss-is-not-valid/24338 "2015-01-23T04:50:09Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![magicknot](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@magicknot](https://meta.discourse.org/u/magicknot)
#### Post date: [January 23, 2015, 4:50am UTC](https://meta.discourse.org/t/rss-is-not-valid/24338/1 "2015-01-23T04:50:09Z")

</div>

Hello!

Firstly I want to congratulate Discourse team for this awesome product!

I’m currently having a problem validating RSS feeds of pages in my Discourse setup (p.e. latest.rss).

The error is caused by:

```xml
<language>#{lang}</language>

```

How can I fix this?

Thanks in advance 🙂

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 23, 2015, 5:43am UTC](https://meta.discourse.org/t/rss-is-not-valid/24338/2 "2015-01-23T05:43:55Z")

</div>

Hmm that looks like a bug, @techapj can you have a look?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [January 23, 2015, 6:37am UTC](https://meta.discourse.org/t/rss-is-not-valid/24338/3 "2015-01-23T06:37:20Z")

</div>

The RSS feed for meta & try (latest) shows as valid:

meta: [Feed Validator Results: https://meta.discourse.org/latest.rss](http://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fmeta.discourse.org%2Flatest.rss)

try: [Feed Validator Results: http://try.discourse.org/latest.rss](http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Ftry.discourse.org%2Flatest.rss)

---

<div class="post-metadata">

### Author: ![Mohammad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mohammad/32/115484_2.png) [@Mohammad](https://meta.discourse.org/u/Mohammad)
#### Post date: [January 23, 2015, 7:34am UTC](https://meta.discourse.org/t/rss-is-not-valid/24338/4 "2015-01-23T07:34:24Z")

</div>

Thank you @techAPJ ! You just let me know that discourse even has a RSS feed file that could be submitted to Google webmasters. I just did and google did accept that. We normally apply this technique in Blogger blogs but didn’t knew we could also for discourse. This RSS file was just I needed. Our Forum category pages and topics at [Ask.mybloggertricks.com](http://ask.mybloggertricks.com) are well picked by Google. Since I just submitted the sitemap as RSS so it would take time for them to be indexed. Glad I read this thread. 5 stars!

---

<div class="post-metadata">

### Author: ![magicknot](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@magicknot](https://meta.discourse.org/u/magicknot)
#### Post date: [January 23, 2015, 5:24pm UTC](https://meta.discourse.org/t/rss-is-not-valid/24338/5 "2015-01-23T17:24:29Z")

</div>

Yes, I know that. I tested with a couple more discourse forums I know and it all looked fine. But with my own discourse installation I got this:

I can’t upload an image, so here it is: [Imgur: The magic of the Internet](https://i.imgur.com/6VMGTKa.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 23, 2015, 8:11pm UTC](https://meta.discourse.org/t/rss-is-not-valid/24338/6 "2015-01-23T20:11:45Z")

</div>

Did you install your Discourse via our official Docker install?

---

<div class="post-metadata">

### Author: ![magicknot](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@magicknot](https://meta.discourse.org/u/magicknot)
#### Post date: [January 23, 2015, 10:21pm UTC](https://meta.discourse.org/t/rss-is-not-valid/24338/7 "2015-01-23T22:21:28Z")

</div>

Yes I have. Even yesterday I’d updated it to the most recent version.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 23, 2015, 11:56pm UTC](https://meta.discourse.org/t/rss-is-not-valid/24338/8 "2015-01-23T23:56:00Z")

</div>

@techapj did we test setting a language in Site Settings? Does that cause it to happen?

This is the relevant line

```
<% if lang %><language>#{lang}</language><% end %>

```

I do think this is a legit bug.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [January 24, 2015, 4:23am UTC](https://meta.discourse.org/t/rss-is-not-valid/24338/9 "2015-01-24T04:23:52Z")

</div>

@codinghorror just fixed this issue:

> **[FIX: language was not being inserted into RSS · discourse/discourse@246ae75](https://github.com/discourse/discourse/commit/246ae75)**
>
> A platform for community discussion. Free, open, simple. - FIX: language was not being inserted into RSS · discourse/discourse@246ae75

This was a legit bug, I just tested the RSS feed for French language before and after the change, and the RSS feed was was not validating before the change but validates now.

Thanks for reporting it @magicknot, I should have taken this more seriously.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [January 24, 2015, 4:23am UTC](https://meta.discourse.org/t/rss-is-not-valid/24338/10 "2015-01-24T04:23:57Z")

</div>


