sitemap error while accessing!

#407072
  • Resolved Mod Lelo
    Rank Math free

    I am not able to access https://modlelo.techkhabri.com/sitemap_index.xml file and it shows the error “error on line 2 at column 7: XML declaration allowed only at the start of the document”. I tried the given solution on rankmath help but unfortunately It doesn’t work for me. I will be glad if you help me in solving the error.

Viewing 1 replies (of 1 total)
  • Prabhat
    Rank Math agency

    Hello,

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

    The error suggests that there are some whitespaces/blank lines before the XML source code of your sitemap.

    This usually occurs when you have whitespaces/blank lines in your wp-config.php or functions.php file.
    Removing those whitespaces/blank lines should fix the issue. Here’s a guide with more details: https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration

    If the issue persists, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping 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 error while accessing!’ is closed to new replies.