sitemap problem

#367616
  • Resolved Andrej Marienka
    Rank Math free

    Hello, I would like to ask. I have this problem with my website when I open sitemap. can you help me?

    This page contains the following errors:
    error on line 2 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 1 replies (of 1 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting the support and we regret the inconvenience caused.

    I checked the website and it seems like you’ve enabled the Yoast SEO plugin.

    However, the error that you’re seeing on the sitemap suggests that there are some white spaces or blank line in your wp-config.php or functions.php file.

    Here’s a guide with more details:
    https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration

    Please remove the blank line/space from the above files and after clearing the website and browser’s cache, see if the issue gets fixed.

    Let us know how that goes.

    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 ‘sitemap problem’ is closed to new replies.