Nekland / FeedBundle

Deprecated in favor of https://github.com/eko/FeedBundle
MIT License
32 stars 20 forks source link

PHP Warning: Extra content at the end of the document #22

Open kimu opened 11 years ago

kimu commented 11 years ago

Hi, I'm getting this error, which makes the rss file unaccessible, every 4-5 days.

PHP Warning: simplexml_load_string(): Entity: line 23: parser error : Extra content at the end of the document in /vendor/bundles/Nekland/FeedBundle/Loader/RssLoader.php on line 31

Then I delete the .rss file created by the bundle in web/feeds and everything work properly for another 4-5 days.

The warning is often followed by other warnings like PHP Warning: simplexml_load_string(): ^ in /vendor/bundles/Nekland/FeedBundle/Loader/RssLoader.php on line 31

At that point the rss file is not a valid rss anymore and the server shows a 500 error.

Nek- commented 11 years ago

The error is normal if the XML is broken. The question is what's broking it ? Which action ?

Have you got an idea ?

kimu commented 11 years ago

Checking the corrupted .rss file I've found that the "rss skeleton" has been repeated at the end of the file without items. After the correct rss, this part has been printed again at the end of the file

<rss version="2.0"><channel><description>Rimani aggiornato sul rugby seguendo le nostre news</description>
<pubDate>Sun, 10 Mar 2013 18:37:52 +0100</pubDate><lastBuildDate>Sun, 10 Mar 2013 18:37:52 +0100</lastBuildDate>
<link></link><title>Rugbymeet - Ultimi articoli</title><language>it</language></channel></rss>