I keep getting a reoccuring feed error for my site (fairworld.info) whenever I try to access the RSS feed.

Safari can’t open the page “feed://www.fairworld.info/node/feed”. The error was: “unknown error” (NSURLErrorDomain:-1)

is what I get in Safari

XML Parsing Error: xml declaration not at start of external entity
Location: http://fairworld.info/node/feed
Line Number 5, Column 1:<?xml version="1.0" encoding="utf-8"?>
^

is what I get with Firefox.

At first I thought it was having difficulty parsing my flexinode entry (for which I had designed a special template), but alas no! What's the deal?

Comments

heine’s picture

 
 
 
 
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="2.0" xml:base="http://www.fairworld.info">
<channel>
 <title>fair world project (alpha) - fairworld.info</title>
 <link>http://www.fairworld.info</link>
 <description></description>
 <language>en</language>
<item>
 <title>Welcome to fairworld!</title>
 <link>http://www.fairworld.info/node/10</link>
 <description>&lt;p&gt;This is the &quot;rough work&quot; site for the upcoming fair world &quot;co-operative&quot; media site.&lt;/p&gt;
</description>
 <pubDate>Thu, 02 Mar 2006 06:46:05 -0800</pubDate>
</item>
<item>
 <title>Rev. James Lawson</title>
 <link>http://www.fairworld.info/node/9</link>
 <description>Here is a brief quote testing the site&#039;s audio/podcast function!</description>
 <enclosure url="http://www.fairworld.info/files/audio/Reverend%20James%20Lawson%20-%20Status%20Quo.mp3" length="739690" type="audio/mpeg" />
 <pubDate>Wed, 01 Mar 2006 22:09:44 -0800</pubDate>
</item>
</channel>
</rss>

Note: there's a lot of whitespace (linefeeds ASCII 10: the problem?) preceding the text; I had to add ASCII 255 to keep this intact for posting.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

ravipjoshi’s picture

So considering that it WAS working before... and now it has this whitespace... or possibly a bad declaration. Any ideas on how I would fix it?

is there a file that I need to edit?

ravipjoshi’s picture

Does anybody have an idea as to fix this?

I suspect there is some code that is making this whitespace occur, and I have no idea how to remedy this

eriktoyra’s picture

I had the same problems and it turns out that it is caused by linebreaks after a closing ?> in either template.php or in one of your enabled modules. In my case it was caused by four linebreaks that I must have added by mistake to my template.php file. Read more about this in http://drupal.org/node/83603