Support » Plugin: XML Sitemap & Google News » error: XML declaration allowed only at the start of the document

  • Resolved florian99

    (@florian99)



    Hello,

    I migrated from another domain to my current one, when setting up the sitemaps (normal + Google News) I get the following error message when opening them:
    This page contains the following errors:

    error on line 2 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.

    What can I do here?
    I already tried to reinstall it.

Viewing 1 replies (of 1 total)
  • Plugin Author RavanH

    (@ravanh)

    Hi, this usually means something else is causing content to appear before the start of the sitemap output. This can be another plugin or the theme or just blank lines in wp-config.php

    If you check the sitemap source code (with Ctrl+u) then you might be able to see what is there before the first tag. It’s probably a blank line.

    You’ll have to find out where this blank line is coming from…

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