WordPress.org

Forums

error on line 2 at column 6: XML declaration allowed (2 posts)

  1. RobinInTexas
    Member
    Posted 2 years ago #

    This page contains the following errors:

    error on line 2 at column 6: XML declaration allowed only at the start of the document

    Using Twenty Eleven theme.
    Looked at other threads which generally blame plugind, so I deactivated all the plugins and the problem remains.

    Based on the other threads, I looked at feed-rss2.php feed-rss.php and feed.php they all seemed to have a blank line at the end of the file, which I removed just to see if it helped, and it did not.

    I'm stuck at this point.

  2. RobinInTexas
    Member
    Posted 2 years ago #

    follow up info:

    ​http://mydomain.com/blog/feed/ works ok

    ​http://mydomain.com/blog/postname/feed/ gives the error

    a link to that url appears before the </head> tag <link rel="alternate" type="application/rss+xml" title="title Comments Feed" href="​http://www.''mydomain''.com/blog/''title''/feed/" />

    Google is picking this up as a crawl error

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.