Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kimu opened this issue Mar 10, 2013 · 2 comments
Open

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

kimu opened this issue Mar 10, 2013 · 2 comments

Comments

@kimu
Copy link

kimu commented Mar 10, 2013

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-
Copy link
Member

Nek- commented Mar 10, 2013

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

Have you got an idea ?

@kimu
Copy link
Author

kimu commented Mar 10, 2013

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>

lsmith77 pushed a commit to lsmith77/FeedBundle that referenced this issue Oct 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants