Webmastersite.net
Register Log In

RSS mime type
RSS feed fails to load in a browser

Comments on RSS mime type

sesshomurai
Member

Usergroup: Customer
Joined: May 24, 2006

Total Topics: 11
Total Comments: 26
Posted Aug 20, 2006 - 6:24 AM:

Hi,
I did some searching on this and others have had difficulty getting the rssfeed.php to return a proper mime type for the RSS xml. As a result firefox or IE do not receive the XML and display it properly. This is useful for many reasons. Anyway, I noticed the author said he had found a fix for it and was wondering if anyone knew what it was. I tried changing the content header to "application/rss+xml", etc in the .php file but to no avail.

Cheers
Sessh
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 20, 2006 - 7:02 PM:

I had a fix that worked for me, but hadn't tested it in Firefox or IE.

I tried changing the content header to "application/rss+xml", etc in the .php file but to no avail.

It's already been set to that in the PHP file so you were probably adding a duplicate.

It seems only Opera, my normal browser, is smart enough to understand what Content-Type: application/rss+xml means. A little googling suggests that IE 7 wants text/xml. text/xml seems to make firefox work too, and Opera accepts it as well, so I'll switch to that. Change
header('Content-type: application/rss+xml');
to
header('Content-type: text/xml');
in rssfeed.php.

(This change will take effect in 3.4.2)
sesshomurai
Member

Usergroup: Customer
Joined: May 24, 2006

Total Topics: 11
Total Comments: 26
Posted Aug 21, 2006 - 3:48 PM:

Hey Paul, thanks. That fixed it. Dumb on me for missing that line before. I was cramming into the start.php but removed it now.

Cheers
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.