WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] RSS Feed Error - Duplicate Attribute (4 posts)

  1. ohsheglows
    Member
    Posted 4 years ago #

    I'm getting the following error with my RSS feed since I upgraded to 2.8.4 from 2.7.x.

    This feed contains code errors.
    More information
    Duplicate attribute.
    Line: 10 Character: 2

    You can see this at http://ohsheglows.com/feed.

    Anyone know what could be the issue? I haven't made any customizations to the RSS feed so I'm not sure what is going on.

    Thanks!

  2. ohsheglows
    Member
    Posted 4 years ago #

    I figured out my issue. The following attribute was displaying twice:

    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"

    Inside the file: /wp-includes/feed-rss2.php there is a section:

    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    <?php do_action('rss2_ns'); ?>

    It appears the function do_action('rss2_ns') also puts in the line above it. So I removed the line above (xmlns:slash="http://purl.org/rss/1.0/modules/slash/") and it appears to work now.

    Hope this helps others.

  3. kmessinger
    Volunteer Moderator
    Posted 4 years ago #

    Although your feed looks ok, it does not validate. http://feedvalidator.org/check.cgi?url=http%3a%2f%2fohsheglows.com%2f

    There is not an error in the wp-includes/feed-rss2.php or everyone using WP would have the error. You changing that file just masked the real error. Normally one does not want to change core WP files.

  4. leadiv
    Member
    Posted 4 years ago #

    I was having this same issue. I tracked it down to a plugin called: Slash Comments which was adding the duplicate attribute in the xml. Deactivating the plugin fixed the issue. It looks like the functionality that the plugin served has been added to the WordPress Core code.

Topic Closed

This topic has been closed to new replies.

About this Topic