[Solved] “A feed could not be found at http://site/feed” and “XML error: XML_ERR_NAME_REQUIRED”

This error occurs when a user is trying to reach his feed in order to post a comment on a site with CommentLuv installed. The problem is in the website theme, due to a missing code line which should define the RSS feed link.

Example:

<link rel="alternate" type="application/rss+xml" title="Sentences with &raquo; Feed"  href="http://sentenceswith.com/feed/" />

This sample can be found in the sentenceswith.com theme, in the header of the theme (header.php).

So what you’ll need to do is to copy the code above into your header.php file by using your website’s theme editor. Of course, you will need to replace the href address with your website’s feed link.

Example:

<link rel="alternate" type="application/rss+xml" title="Your Website Title; Feed" href="http://yourwordpresswebsite.com/feed/" />

So, if your site is called devicebox.ro, then your code line should be:

<link rel="alternate" type="application/rss+xml" title="Device Box; Feed" href="http://devicebox.ro/feed/" />

To access your wordpress theme editor, just go to http://yoursite.com/wp-admin/theme-editor.php and select header.php from the right list.  After that, just add the line somewhere between some <link> tag codes, and update the file.

Your RSS should work fine after that.

One thought on “[Solved] “A feed could not be found at http://site/feed” and “XML error: XML_ERR_NAME_REQUIRED”

Leave a Reply

Your email address will not be published. Required fields are marked *