# Problem in latest.rss / Not a Valid Feed, it says!

**URL:** https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466
**Category:** Support
**Created:** [2017年一月10日 08:27 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466 "2017-01-10T08:27:59Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [2017年一月10日 08:27 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/1 "2017-01-10T08:27:59Z")

</div>

Hey guys,

My rss cannot be validated.  
See here: [Feed Validator Results: https://forums.7host.ir/latest.rss](http://bit.ly/2idlnhG)

I am getting some errors when i am trying to fetch the latest entries to another website and the feed validator does not qualify this as a valid feed/rss link.

I have installed discourse in the traditional way.  
Any ideas?

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [2017年一月10日 17:24 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/2 "2017-01-10T17:24:07Z")

</div>

Anyone could have an idea on this? 😏

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [2017年一月10日 21:08 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/3 "2017-01-10T21:08:10Z")

</div>

Those are fairly minor errors in the RSS.

> [@](#):
>
> This feed does not validate.  
> line 7, column 19: language must be an ISO-639 language code: fa\_IR [help]
> 
> ```
> <language>fa_IR</language>
> 
> ```

I believe the correct code is `fa-ir` with a hyphen not an underscore. I think this is the only one that might cause problems.

> [@](#):
>
> line 9, column 98: Self reference doesn’t match document location

You gave the validator an `https:` URL and the page there said that it is an `http:` resource. Super minor.

> [@](#):
>
> In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
> 
> line 2, column 0: Use of unknown namespace: [http://www.discourse.org/](http://www.discourse.org/)

That validator isn’t familiar with Discourse specifics. Not a big deal.

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [2017年一月11日 07:00 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/4 "2017-01-11T07:00:00Z")

</div>

> [@elijah](#):
>
> I believe the correct code is fa-ir with a hyphen not an underscore. I think this is the only one that might cause problems.

How do I edit that?

> [@elijah](#):
>
> That validator isn’t familiar with Discourse specifics. Not a big deal.

Well it’s not about that validator. I am using the feed to show the latest entries of my forum on the main website which all I get is errors. That’s why I need to fix it.

---

<div class="post-metadata">

### Author: ![Alavi1412](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alavi1412/32/67721_2.png) [@Alavi1412](https://meta.discourse.org/u/Alavi1412)
#### Post date: [2017年一月11日 07:31 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/5 "2017-01-11T07:31:02Z")

</div>

I have [this](https://padpors.com/latest.rss) problem too.  
Is there any solution for this problem?

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [2017年一月11日 09:56 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/6 "2017-01-11T09:56:46Z")

</div>

I just installed a fresh version of discourse with default language. It worked fine. I think its because of the language. @codinghorror any idea on how we can get this fixed?

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [2017年一月11日 09:58 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/7 "2017-01-11T09:58:05Z")

</div>

@Alavi1412 is also using Persian (Farsi) in discourse.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2017年一月11日 11:53 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/8 "2017-01-11T11:53:00Z")

</div>

Can you compare the language settings in Admin \> Settings between your new and existing solution? Compare your app.yml?

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [2017年一月11日 12:07 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/9 "2017-01-11T12:07:41Z")

</div>

Both the same except I added the following to the old one to get a plugin and install ssl

Under Hooks: - git clone [GitHub - discourse/discourse-tagging: Tagging functionality for Discourse Forums · GitHub](https://github.com/discourse/discourse-tagging.git)  
Under Templates: - “templates/web.ssl.template.yml”  
Under Expose: - “443:443”

I am quite sure about my app.yml configs. its all correct.

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [2017年一月11日 13:31 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/10 "2017-01-11T13:31:05Z")

</div>

What version of Discourse are you using?

 ![](https://global.discourse-cdn.com/meta/original/4X/6/3/0/630b5a96b0feec605d156377e478485e553c0ab8.png)

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [2017年一月11日 13:42 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/11 "2017-01-11T13:42:42Z")

</div>

> [@Trash](#):
>
> What version of Discourse are you using?

I am using the latest version of Discourse. I believe tagging is not interfering in the RSS. Its language related.

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [2017年一月11日 19:36 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/12 "2017-01-11T19:36:07Z")

</div>

I have try the validator with `/latest.rss` on our dev test site (ver. 1.8.0.beta1 +3), language `it`.  
All works fine

 ![](https://global.discourse-cdn.com/meta/original/4X/e/b/3/eb33b39dbd6c03803ee7055385db1a8f341c3852.png)  
Sorry, I cannot test on our site in production because we are still in beta 1.7.

---

<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: [2017年一月11日 19:45 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/13 "2017-01-11T19:45:17Z")

</div>

@techapj could you take a peek at this tomorrow?

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [2017年一月11日 19:56 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/14 "2017-01-11T19:56:24Z")

</div>

Thanks for care. Our language is fa-ir not it

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [2017年一月11日 20:08 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/15 "2017-01-11T20:08:58Z")

</div>

> [@Arta\_S](#):
>
> Our language is fa-ir not it

Right. And your code said `fa_ir` not `fa-ir`. Notice the difference.

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [2017年一月12日 09:40 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/16 "2017-01-12T09:40:10Z")

</div>

I didn’t set it to fa-ir or fa\_ir and for the matter of fact I know that it should be fa-IR but I don’t know where to correct it. that’s why I am here.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2017年一月12日 11:22 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/17 "2017-01-12T11:22:11Z")

</div>

I’m grasping at straws here, so bear with the request.

On the fresh install, in Admin \> Settings, what is `default locale` set to?  
What is it set to on your live instance?

On the live instance, can you change it to ‘English’, save it, refresh the browser, then switch it back to the value you want it to have, Save it, Refresh the browser?

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [2017年一月12日 11:39 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/18 "2017-01-12T11:39:36Z")

</div>

> [@cpradio](#):
>
> I’m grasping at straws here, so bear with the request.
> 
> On the fresh install, in Admin \> Settings, what is default locale set to?What is it set to on your live instance?
> 
> On the live instance, can you change it to ‘English’, save it, refresh the browser, then switch it back to the value you want it to have, Save it, Refresh the browser?

Thanks for the care.  
Let’s not go too far on this.

On my current live installation this is what it looks like:

When on english: [Screenshot by Lightshot](http://prntscr.com/dunm99) (its correct and rss works without errors)  
When on Persian: [Screenshot by Lightshot](http://prntscr.com/dunms8) (its incorrect and rss gives errors)

These are both same installs and the problem is from language tag in RSS.  
The tag for language `<language>fa_IR</language>` is wrong. this should be **fa-IR**

update:  
instead of an **Underline** it should be a **Dash**

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2017年一月12日 12:22 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/19 "2017-01-12T12:22:35Z")

</div>

Right, I understand that. I’m trying to figure out if the `default locale` is supplying that value and if that value is cached and was later corrected, but wouldn’t be seen unless you change it and change it back. As the value is obviously stored somewhere, either in the app.yml or that `default locale` setting, and let’s say when you first installed Discourse, it incorrectly had `fa_IR` and they later fixed it to be `fa-IR`, now until you change the `default locale` and switch it back, it would likely not fix itself.

So in essence, I’m simply asking you to reset the value of `default locale` and then switch it back to Persian to rule out another possibility.

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [2017年一月12日 17:09 UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/20 "2017-01-12T17:09:31Z")

</div>

> [@cpradio](#):
>
> Right, I understand that. I’m trying to figure out if the default locale is supplying that value and if that value is cached and was later corrected, but wouldn’t be seen unless you change it and change it back. As the value is obviously stored somewhere, either in the app.yml or that default locale setting, and let’s say when you first installed Discourse, it incorrectly had fa\_IR and they later fixed it to be fa-IR, now until you change the default locale and switch it back, it would likely not fix itself.
> 
> So in essence, I’m simply asking you to reset the value of default locale and then switch it back to Persian to rule out another possibility.

My version is up to date. I have done that too but no results.

[下一頁](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466.md?page=2)
