Welcome to Geeklog, Anonymous Saturday, July 13 2024 @ 02:17 am EDT

Geeklog Forums

Rss Feed not valid when checked with a validator


linder60

Anonymous
Hi All,
When I tried to validate my rss feed with a validator, this is the message I got. Does anyone know which files or where I need to make the adjustments ? ---------->

---------------------------------------------------------------------------------------------------

Warning
This feed is valid, but may cause problems for some users. We recommend fixing these problems.

Feeds should not be served with the "text/plain" media type [help]

and then this:

Message
Feeds should not be served with the 'foo' media type

Explanation
The web server is reporting an unexpected MIME type for a feed. Although we tried to parse it as a feed, aggregators may well report this as an error and act as if the user had pointed them at something other than a feed.

RSS feeds should be served as application/rss+xml (RSS 1.0 is an RDF format, so it may be served as application/rdf+xml instead). Atom feeds should use application/atom+xml. Alternatively, for compatibility with widely-deployed web browsers, any of these feeds can use one of the more general XML types - preferably application/xml.

Solution
Use the appropriate MIME type for your feed.

For static content served with Apache, use the AddType directive.
For static content served with Microsoft IIS, add a MIME type.
---------------------------------------------------------------------------------------------------
Thanks,
Linda Banging your head
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Maybe you try another feed class
...There are also some extensions available: ...
http://www.geeklog.net/faqman/index.php?op=view&t=16
http://www.geeklog.net/forum/viewtopic.php?showtopic=42229

or wait for GL 1.4.0 as it is included there
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by linder60: Does anyone know which files or where I need to make the adjustments ?

As the message states: The feed is not sent out with the correct MIME type.

If you're on Apache, try adding this to your .htaccess:
Text Formatted Code
AddType application/rss+xml .rss
 

Assuming your feed has an .rss extension. See the validator's message you quoted for details ...

bye, Dirk
 Quote

bermuda

Anonymous
Quote by: Dirk

Quote by linder60: Does anyone know which files or where I need to make the adjustments ?

As the message states: The feed is not sent out with the correct MIME type.

If you're on Apache, try adding this to your .htaccess:
Text Formatted Code
AddType application/rss+xml .rss
 

Assuming your feed has an .rss extension. See the validator's message you quoted for details ...

bye, Dirk



Hi Dirk,

Thanks very much indeed for the tip.

I too had this problem and by adding the line to .htaccess file it was solved.

Thanks again. Big Grin
 Quote

All times are EDT. The time is now 02:17 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content