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.
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.
Comments on RSS mime type
Member
Usergroup: Customer
Joined: May 24, 2006
Total Topics: 11
Total Comments: 26
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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)
Member
Usergroup: Customer
Joined: May 24, 2006
Total Topics: 11
Total Comments: 26
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