• Resolved ghmercado

    (@ghmercado)


    XML Parsing Error: xml declaration not at start of external entity
    Location: https://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:

    https://example.com/index.php/tag/feed
    https://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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The answer that I have seen work 95% of the time is…

    No blank spaces before OR after the code <?

    ?>

    Hope this helps.

    JJH

    Thread Starter ghmercado

    (@ghmercado)

    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.

    Thread Starter ghmercado

    (@ghmercado)

    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

    Thread Starter ghmercado

    (@ghmercado)

    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.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘rss feed XML Parsing Error’ is closed to new replies.