22851 Posts in 9934 Topics by 2804 members
|Go to End|
14 May 2009 at 7:03pm
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
$body = ltrim($body);
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.
15 May 2009 at 11:52am
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.
|Go to Top|