WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] rss feed XML Parsing Error (6 posts)

  1. ghmercado
    Member
    Posted 6 years ago #

    XML Parsing Error: xml declaration not at start of external entity
    Location: http://www.lefthandedlayup.com/index.php/tag/plug/feed
    Line Number 2, Column 1:
    
    <?xml version="1.0" encoding="UTF-8"?>
    ^

    i get this error when trying to access a feed off of a tag or category, ie:

    http://example.com/index.php/tag/feed
    http://example.com/index.php/category/feed

    any clues? Previous searches have resulted in all sorts of results that have not addressed my concern. I have also tried replacing archive.php with that from the default template files.

    Many thanks in advance.

  2. IBuildTraffic2
    Member
    Posted 6 years ago #

    The answer that I have seen work 95% of the time is...

    No blank spaces before OR after the code <?

    ?>

    Hope this helps.

    JJH

  3. ghmercado
    Member
    Posted 6 years ago #

    hi ibuildtraffic2, in which file is this? I found instances of

    <?xml version="1.0" encoding="UTF-8"?>

    in the following files:

    wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php

    and

    wp-includes/js/tinymce/plugins/spellchecker/classes/tinygooglespell.class.php

    i removed spaces as you described in these files but am still getting errors.

  4. ghmercado
    Member
    Posted 6 years ago #

    well I've gone and removed all incidents of spaces before ?> and after <? in all files in both the plugins directory and the directory of the theme I am using to no avail.

    I've also checked my wp-config and this line isn't commented out:

    define('DB_CHARSET', 'utf8');

    and in Settings > Reading the setting for 'Encoding for pages and feeds' is still 'UTF-8'

    I've also checked the code for the tag I'm trying to get a feed for and can't see any incidents of a space between ?> and <?.

    So i've just about run out of ideas here. Inputs please? Many thanks in advance.

    im using wp 2.5.1

  5. ghmercado
    Member
    Posted 6 years ago #

    found the solution!

    I removed the blank space on line #9 on the wp-rss2.php file. Basically, what looks like

    require (ABSPATH . WPINC . '/feed-rss2.php');
    
    ?>

    should be:

    require (ABSPATH . WPINC . '/feed-rss2.php');?>

    and it worked out for me. I think this is a 2.5 upgrade issue, because my Feeds suddenly started coming into my Feedreader, the last post of which was before the upgrade.

    hope this helps those lost souls out there. Man, this took weeks of work. Blogged about it as well.

  6. flyaga
    Member
    Posted 5 years ago #

    Please try this plugin fix-rss-feed, it will fix your rss error automatically, and you can get more information from http://wordpress.org/extend/plugins/fix-rss-feed/, and you also can get help from the author website http://www.flyaga.info/en/wordpress/plugins/fix-rss-feed-error-wordpress-plugins.htm

Topic Closed

This topic has been closed to new replies.

About this Topic