Support » Fixing WordPress » RSS Feed Error – Duplicate Attribute

  • Resolved ohsheglows


    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

    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.


Viewing 3 replies - 1 through 3 (of 3 total)
  • I figured out my issue. The following attribute was displaying twice:


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

    <?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=””) and it appears to work now.

    Hope this helps others.

    Moderator kmessinger


    Although your feed looks ok, it does not validate.

    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.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘RSS Feed Error – Duplicate Attribute’ is closed to new replies.