Sitemap Error – XML Declaration

#72992
  • Resolved Leah Ostermeyer
    Rank Math business

    I am getting the following error when with sitemaps.

    error on line 2 at column 6: XML declaration allowed only at the start of the document

    I have read through your forum and tried to find the white space error – but I can’t see it. Could you please help?

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

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

    The access provided doesn’t seem to work for me, please check.

    Have you checked your WP-CONFIG file? Sometimes the empty line can be there.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Thank you for looking at this. I have just checked the wp-config file and can’t see a problem – Can I send you a new login?

    Hello,

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

    Thank you.

    Hello,

    The issue seems to be coming from your theme. Checking the files one by one may require sometime to find the cause of the issue. You can work around by creating the php file following this suggestion that seems to work. Please check it out here.

    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 4 replies - 1 through 4 (of 4 total)

The ticket ‘Sitemap Error – XML Declaration’ is closed to new replies.