• Resolved befree22

    (@befree22)


    Hi Folks,

    Could someone help me fix this vexing issue with the rss feed xml parsing error below? I’ve spend too much time trying to troubleshoot it on my own.

    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://www.denisejacksonmusic.com/feed
    Line Number 6, Column 1:<?xml version="1.0" encoding="UTF-8"?>
    ^

    I read https://www.ads-software.com/support/topic/rss-feed-isnt-working-xml-parsing-error?replies=14 but I’ve got WP 3.3.1. I read about the blank line error at https://feedvalidator.org/docs/error/WPBlankLine.html and check the following files for blank spaces after the ?> tag.

    wp-includes/feed.php
    /feed-rss2.php
    /feed-rss2-comments.php
    /feed-rss.php
    /feed-rdf.php
    /feed-atom.php
    /feed-atom-comments.php
    /rss.php
    /wlwmanifest.xml
    /functions.php

    wp-content/themes/denise/config.inc.php
    /functions.php

    I’d like to know which .php file is being referenced by the error code. All of the feed files above have the xml declaration in them.

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter befree22

    (@befree22)

    w3it.org WordPress user, https://www.ads-software.com/support/topic/xml-error-reserved-xml-name-at-line-2-column-38-39?replies=7 solved the problem by applying this solution https://www.w3it.org/blog/wordpress-feed-error-output-solution-how-to/

    I wanted to add the following code to solve the problem but the feed files feed-rss2.php, feed-rss2-comments.php, feed-rss.php, feed-rdf.php, feed-atom.php, feed-atom-comments.php already contain a portion of the code.

    header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
    $more = 1;
    $out = ob_get_contents();
    $out = str_replace(array("\n", "\r", "\t", " "), "", $input);
    ob_end_clean();

    Could someone help me fix my xml parsing error?

    All of the WordPress 3.3.1 feed files start with the following code

    <?php
      /**
     * RSS2 Feed Template for displaying RSS2 Posts feed.
     *
     * @package WordPress
     */
    
    header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
    $more = 1;
    
    echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>

    Never, ever, edit core WordPress files! Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter befree22

    (@befree22)

    I created a backup of my WordPress database so that I keep the settings on my plugins when I reactivate them but is it required to do a database backup when deactivating plugins?

    No.

    Thread Starter befree22

    (@befree22)

    I deactivated each plugin AND I installed the Default WordPress theme but I’m still getting the error. I’m surprised that the Default would return an error.

    Thread Starter befree22

    (@befree22)

    2011 is returning the same error. Now I’m very surprised. I have other sites using 2011 and I’m experiencing no problems.

    I just posted a question about a speech bubble not displaying on a 2011 child theme but a WordPress user could view the the speech ball on his end. I have a 1 month old computer, I’m using Firefox but I wonder why I’m unable to view the speech bubble.

    I will clear the cache and test 2011 again for the feed.

    1. You still have active plugins.

    2. Try checking your wp-config.php file.

    Thread Starter befree22

    (@befree22)

    I deactivated each plugin and reactivated it after checking the rss feed on the website. So you want me to deactivate them all and don’t reactivate them?

    Do you want the wp-config.php code? I checked that there were no spaces outside the <? > tags.

    So you want me to deactivate them all and don’t reactivate them?

    Yes.

    Thread Starter befree22

    (@befree22)

    I deactivated all of the plugins per this Codex entry

    Hence, the plugins folder is now plugins.hold

    I rechecked the feed and it’s still returning an error with the plugins.hold

    There is no wp-config.php file in the themes folder. There is a config.inc.php and here’s the code

    <?php
    global $options;
    foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
    ?>
    Thread Starter befree22

    (@befree22)

    The 2011 theme is also returning the rss xml error with the plugins.hold

    Now can we see your sit4e using the Twenty Eleven theme with all plugins deactivated, please?

    Thread Starter befree22

    (@befree22)

    2011 theme activated for you ??

    Try re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.

    Thread Starter befree22

    (@befree22)

    Working on it…

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘RSS feed xml parsing error’ is closed to new replies.