Sitemap error:This page contains the following errors: error on line 2 at column

  • This page contains the following errors:
    error on line 2 at column 6: XML declaration allowed only at the start of the document

    Help me solve this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    It usually happens when there is some white space at the end of an important file of your theme (and even on some plugins). You can try to find it and if not we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    We really look forward to helping you.


    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    I have updated a temporary login URL at the sensitive data area.
    Please have a look…


    I have checked your plugins and theme and plugins but they don’t seem to be the cause of the issue. Could you please check your wp-config file for any blank line or unexpected character.

    Looking forward to helping you. Thank you.


    I figured it out.
    It was a blank space in the first line of wp-config.php
    Thanks for the response.
    Good day


    We are super happy that this resolved your issue.

    Please let us know if we can close this and mark it resolved.

    Do not hesitate to let us know if you have any further questions.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this ticket.