XML declaration allowed only at the start of the document

#420689
  • Resolved LITTOLO HOUSE
    Rank Math free

    XML declaration allowed only at the start of the document

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

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    This issue is caused by a blank line/space in your wp-config.php file or your theme’s functions.php file. Here’s a link for more information:
    https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration

    You can get in touch with your web host to access your website files. Please also provide the FTP access in the sensitive data section so we can check.

    Looking forward to helping you.

    Thank you.

    Hello,

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

    Thank you.

    Hello,

    There was blank space in your functions.php file. We have removed the blank space and now your sitemap is loading properly. You can check the screenshot in the sensitive data section.

    Hope this helps and let us know if you need help with anything else.

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

The ticket ‘XML declaration allowed only at the start of the document’ is closed to new replies.