error on line 3 at column 6: XML declaration allowed only at the start of the do

#798002
  • Resolved Anonymous
    Rank Math free

    hello, i got this error in my sitemap, and i tried ur ways but cant do it, can u plz check, thats the link
    and the srouce code look normal..

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

    I’m sorry to hear that you are facing an issue with your sitemap. To address the error “error on line 3 at column 6: XML declaration allowed only at the start of the do,” it seems like there might be an issue with the XML declaration in your sitemap file.

    One common reason for this error is having white spaces or characters before the XML declaration in the sitemap file. This can cause parsing issues and lead to the error you mentioned.

    To resolve this, you need to ensure that there are no white spaces, characters, or any content before the XML declaration in your sitemap file. The XML declaration should be at the very beginning of the file.

    If you have checked the source code and confirmed that there are no extra characters or white spaces before the XML declaration, you may want to verify if there are any conflicting plugins or themes causing this issue. You can use the Health Check plugin to identify any conflicts.

    If the issue persists after checking these steps, please provide more details or reply with additional information so we can further assist you in resolving this problem.

    Thank you for reaching out, and we appreciate your patience as we work to resolve this issue for you.

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    How To Exclude Rank Math Sitemaps from Caching » Rank Math

    Anonymous
    Rank Math free

    where to find the “sitemap file” file?

    Anonymous
    Rank Math free

    thats the error, but i try everything but it wont work?

    Anonymous
    Rank Math free

    it shows this when i use debug: This page contains the following errors:
    error on line 3 at column 6: XML declaration allowed only at the start of the document
    error on line 3 at column 39: Encoding error
    Below is a rendering of the page up to the first error.

    Anonymous
    Rank Math free

    i fixed it from this video https://www.youtube.com/watch?v=s4iFjRnARjc

    Hello,

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

    This sitemap error indicates that there must be some white space before the XML Sitemap’s source code. However, we are glad that you managed to resolve this issue.

    Can you please confirm if you still need our assistance with anything else?

    Looking forward to hearing back from you.

    Thank you.

    Anonymous
    Rank Math free

    thnaks, just close the ticket everything is good

    Hello,

    We are glad that everything has been sorted out.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

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