Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
I'm trying to use Feedburner with a blog but it keeps rejecting the feed because the XML declaration starts on the second line.
How do I remove that first line from the feed?
I've tried adding
to outputToBrowser in RSSFeed.php but that doesn't change the output.
I had this problem in the past (pre 2.3.0) and found a fix but can't remember how I made it work. I'm currently using 3.3.2 beta 1.
The (very crude) fix for this is to strip the XML statement from the start of the feed. In sapphire/api/RSSfeed.php, line 189 is:
I added a new line above to remove the XML declaration:
The feed now validates in Feedburner so I am assuming it is valid for the majority of browsers.