Sitemap Error – XML Declaration

  • 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.

    ​​​​​​

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

You must be logged in to reply to this ticket.