• I have recently transferred from a shared server to my own VPS. I have pretty much gotten all of the kinks in the migration worked out.

    One exception I am having occurs with my sitemap XML file. I am getting some issues with XML declaration. Have a look here.

    This page contains the following errors:
    
    error on line 17 at column 6: XML declaration allowed only at the start of the document
    Below is a rendering of the page up to the first error.

    I haven’t changed my theme nor any theme files in the migration process. I have read past issues (8 months or more) that bring up this issue regarding whitespace. I feel it’s a similar issue but am requesting assistance in the issue.

    https://www.ads-software.com/plugins/wordpress-seo/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Brandon White

    (@aschx)

    This is also occurring in my /feed/ pages as well. I have a feeling this is definitely a theme/functions white-space issue. Does anyone have a recommendation as to what files should be checked?

    Thread Starter Brandon White

    (@aschx)

    Now I am getting a 404 error trying to find my sitemap_index.xml file. Interesting. Anyone at all have any thoughts on the matter?

    EDIT: A temporary fix was just enabling/disabling the sitemap XML function in the SEO settings. But I am still having the XML declaration issue. Any ideas as to which files need to be looked at? Eg. What theme files are called when this XML file is produced?

    Thread Starter Brandon White

    (@aschx)

    The issue has been resolved. It is an incompatibility with a plugin I had installed.

    For more info, read this support thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘XML declaration allowed only at the start of the document’ is closed to new replies.