RSS Feed Error

  • Author
    Posts
  • #15070
    Rick H

    On the feed page http://www.jerrypournelle.com/chaosmanor/feed/ , showing an error “XML Parsing Error: XML or text declaration not at start of entity”.

    Looks like the cause is a blank line before the beginning code:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <rss version=”2.0″
    xmlns:content=”http://purl.org/rss/1.0/modules/content/&#8221;
    xmlns:wfw=”http://wellformedweb.org/CommentAPI/&#8221;
    xmlns:dc=”http://purl.org/dc/elements/1.1/&#8221;
    xmlns:atom=”http://www.w3.org/2005/Atom&#8221;
    xmlns:sy=”http://purl.org/rss/1.0/modules/syndication/&#8221;
    xmlns:slash=”http://purl.org/rss/1.0/modules/slash/&#8221;
    >

    Where is this blank line generated; how to fix the RSS feed error?

    Thanks…Rick…

    #15443
    Zed
    Cryout Creations mastermind

    Your entire site seems to be having some extra empty lines. This is most likely caused by invalid EOL conversions.
    Are you using Windows-based hosting?


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #15463
    Rick

    Hosting is provided by BlueHost; they are not Windows-based, I believe.

    Wordpress is at latest version. Not sure where the problem is, but RSS was ok with prior theme.

    Where to start looking?

    #15465
    Rick

    Found the problem. The googles reminded me that blank spaces/lines after the ‘?>’ at the end of a file can cause problems.

    So, the themes-styles.php file had some extra spaces after the ‘close-php’ code. I removed that, and the RSS feed is now working.

    It may be that I had edited that file in the admin-editor, and the extra lines were added. I’d have to look at the original theme files to see if there are the extra spaces there.

    But, for others that might have this problem; check any modified theme files for extra spacing or blank lines after the ‘close-php’ code.

    …Rick…

    #15724
    Zed
    Cryout Creations mastermind

    The extra empty line was there in the original theme file as well. Thanks for pointing that out. It’s fixed for the next update.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘RSS Feed Error’ is closed to new replies.