• Resolved Haydenator

    (@haydenator)


    Hello,

    I’ve been having problems with my RSS feed. I’ve used a feed validator and it highlights the “wp-content/favicons.ico” line. Below is the end of the RSS source.

    </rss>
    
    <link rel="shortcut icon" href="https://haydenator.com/wp-content/favicons.ico" type="image/x-icon">
    <link rel="icon" href="https://haydenator.com/wp-content/favicon.ico" type="image/x-icon">

    The warning in the RSS feed is “This page contains the following errors:
    error on line 94 at column 1: Extra content at the end of the document”

    A direct link to the feed https://haydenator.com/feed

    I can’t seem to remove the line, I thought it might be caused by a rogue plugin. Frustrated, I decided to delete my wordpress installation, remove it’s mySQL database and start off with fresh installation and just copy/paste my old posts. Now, my only plugins are AntiSpam Bee, Better WP Security, W3 Total Cache, Google Analytics for WordPress, Dashboard for Google Analytics and a premium theme ‘Feather’ by WPBandit. I’ve tried other themes and the RSS issue remains. I’ve tried disabling W3TC and cloudflare (via host). None of the old files have been re-uploaded to the server.

    This issue however doesn’t effect my other wordpress installation.

    I’ve spent about ten hours trying to figure this out and I’m not quite sure what to do next. Any suggestions will be greatly appreciated.

    Many thanks,
    Hayden.

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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 Haydenator

    (@haydenator)

    Hello Esmi,

    Thank you for your reply. I have now disabled all plugins. Moved the plugin folder to another location on the server and switched to the Twenty Eleven theme. I’ve also disabled my host’s cloudflare support. Everything is as close to stock as I can get it.

    I’ve cleared my browsers cache but the problem appears to remain.

    What I’ve also just done is create a new wordpress installation in another folder and slowly build up. First the theme, then the plugins, then a few fake posts… All fine.

    I go back to my main site. Change the site address URL to match the wordpress address URL, eg. from .com to .com/main-install-folder. Problem goes away, RSS feed is happy. I change it back, RSS mucks up again.

    I’m not quite sure what to make of it.

    What are you using to add:

    <link rel="shortcut icon" href="https://haydenator.com/wp-content/favicons.ico" type="image/x-icon">
    <link rel="icon" href="https://haydenator.com/wp-content/favicon.ico" type="image/x-icon">

    to your pages? A plugin? Or are you editing the theme? Either way, it’s being added in totally the wrong place – at the end of the page after the closing </html> tag.

    Thread Starter Haydenator

    (@haydenator)

    Hello and thanks again Esmi,

    That’s the odd thing. I haven’t used any plugins for it and it played up before I added a favicon via the premium theme’s options.

    Funnily enough, I can now compare both feeds for the main site, at the same time. This totally ignores the extra test installation.

    haydenator.com/woot/feed/

    haydenator.com/feed/

    It seems that Schrodinger’s cat has made it into my RSS as the problem both exists and doesn’t exist. Maybe it’s got something to do with my host. About six months ago we were having redirecting problems and they wrote a few rules around it. Maybe it effects my root URL.

    Other than that, I’m still not sure.

    Thread Starter Haydenator

    (@haydenator)

    Good news,

    The problem turned out to be an old index.php file in the public_html area. For whatever reason, the file had those two favicon lines at the end, after the wordpress lines.

    It explains why, after I had deleted my wordpress installation and installed a fresh new one, it remained and continued to haunt me. I deleted it, copied one from the wordpress installation a few folders deep and edited it to point to the right direction.

    Anyway, thanks again for your help Esmi. I’m glad to put this problem behind me.

    Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Invalid RSS, strange favicons.ico line in source.’ is closed to new replies.