[SOLVED] To get rss feed to validate out of CGFeedMaker

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
postiffm
Forum Members
Forum Members
Posts: 128
Joined: Tue Nov 30, 2010 12:16 am

[SOLVED] To get rss feed to validate out of CGFeedMaker

Post by postiffm »

I get this from the feed validator:

Feeds should not be served with the "text/html" media type [help]
Your feed appears to be encoded as "UTF-8", but your server is reporting "US-ASCII" [help]

I believe that AddType application/rss+xml .rss

in .htaccess doesn't work to solve the first problem because the .rss file is not static.

So...where/how do I change the Content-Type and encoding in the header to get these warnings to go away? I messed around with the feed's template but I cannot get it right.

[I have no problem with the pretty_url issue because I access the .rss file with the same name that {$feed_url} reports back.]

Thanks,

Matt
Last edited by postiffm on Tue May 14, 2013 2:08 am, edited 1 time in total.
postiffm
Forum Members
Forum Members
Posts: 128
Joined: Tue Nov 30, 2010 12:16 am

Re: To get rss feed to validate out of CGFeedMaker

Post by postiffm »

By the way,

http://www.rexswain.com/cgi-bin/httpview.cgi

reports that the http header for my CGFeedMaker rss feed is

Content-Type:·text/html


Some other blogs I looked at:

http://www.aei-ideas.org/channel/carpe-diem/feed/
Content-Type:·text/xml;·charset=UTF-8

http://feeds.feedburner.com/cmsmadesimple/blog
Content-Type:·text/html;·charset=UTF-8

http://feeds.feedburner.com/TheologicallyDriven
Content-Type:·text/html;·charset=UTF-8
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: To get rss feed to validate out of CGFeedMaker

Post by staartmees »

to solve the problem with Content-Type:·text/html, you have to adapt your .htaccess-file by adding

Code: Select all


AddType application/rss+xml .rss

postiffm
Forum Members
Forum Members
Posts: 128
Joined: Tue Nov 30, 2010 12:16 am

Re: To get rss feed to validate out of CGFeedMaker

Post by postiffm »

Thanks--but it doesn't seem to help.

I already had
AddType application/rss+xml rss
in my .htaccess. I changed it to what you suggested
AddType application/rss+xml .rss
with no change in the text/html content-type returned for that page.

Also, I had already verified with my host that rss was in the server's /etc/httpd/conf/mime.types file:

application/rss+xml rss

Any other ideas?
postiffm
Forum Members
Forum Members
Posts: 128
Joined: Tue Nov 30, 2010 12:16 am

Re: To get rss feed to validate out of CGFeedMaker

Post by postiffm »

I commented out the line that sets the content-type to text/html and have been running my site for a few days with no apparent change in behavior.
postiffm
Forum Members
Forum Members
Posts: 128
Joined: Tue Nov 30, 2010 12:16 am

Re: To get rss feed to validate out of CGFeedMaker

Post by postiffm »

A new version of CGFeedMaker, 1.0.19, solved my problem. In action.default.php it sets the content-type to "text/xml" which is good enough to get the feed to validate properly.
Post Reply

Return to “The Lounge”