Support » Fixing WordPress » RSS Error

  • Resolved Eric888

    (@eric888)


    When I click on RSS Comments or Feed I receive the following error:
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet
    Only one top level element is allowed in an XML document. Error processing resource ‘http://10.60.9.99/blog/wp-rss2.php?fee…

    <b>Warning</b>: Cannot add header information – headers already sent by (output started at c:\inetpub\wwwroot\b…

    I tried finding the files containing “feed:” as other posts suggested but that did not help. Some mentioned reloading files, but I am unsure as to what files to reload.

    Any help would be appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • I tend to get the “cannot add header information” errors after editing a wordpress php file I shouldn’t be messing with lol. It has always been solved by checking that there aren’t any extra blank lines at the end of the file. Go back and check any of the files you changed and see if there are extra blank lines at the end and delete them. Hope that helps.

    Nope, no blank lines. The thing is when I add the “feed:” back in, the error “Page cannot be displayed” appears. Which adds to the confusion of why this doesnt work.

    Moderator James Huff

    (@macmanx)

    Providing us with URL would go a long way in helping you. Otherwise, you’ll have to wait for the psychics to show up.

    Sorry I am very new with this, Im hosting the website myself so Im not sure if you can access from outside of my network
    http://10.60.9.99/blog/?feed=rss2

    This is it but again Im not sure if it will help.
    It seems I was able to get the XML to display but when I put it into SharpReader it returns the error:
    Error parsing RSS XML: Not a valid xml document: The XML declaration is unexpected. Line 3, position 3.

    Thanks in advance

    Moderator James Huff

    (@macmanx)

    You’re right, I can’t access that. Well, basically it sounds like you have one or more blank lines at the top of your RSS’s source. So, look through your feed related WordPress files (the feed and rss files, the index.php file in your blog root and theme, and the header.php file in your theme). If those files have any blank lines at the top, delete them. The other thing that may be causing this would be plugins. Try deactivating all of your plugins, then check your feed again. Good luck!

    Thanks for the help, turns out I had to comment out some headers (whatever that does???) But it works, which is all that I care about. Thanks for the help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘RSS Error’ is closed to new replies.