error on line 1 at column 7: XML declaration allowed only at the start of the do

#99746
  • Resolved Hossein Mafi
    free

    Hi
    My sitemap pages give the following error:

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

Viewing 1 replies (of 1 total)
  • Hello,

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

    This error normally comes up when another plugin or a theme modifies the sitemap but since you have already tested for conflicts, it is likely that there is some whitespace on your sitemap index arising from an empty space on your functions.php file.

    You can quickly test if this is the case by switching to one of the stock WP themes and check if you can reproduce this issue.

    Looking forward to helping you. Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘error on line 1 at column 7: XML declaration allowed only at the start of the do’ is closed to new replies.