Sitemap issue: error on line 2 at column 6

  • Hello,

    I am getting the famous sitemap error:
    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.

    I followed all the steps based on your guidance: https://rankmath.com/kb/check-plugin-conflicts/. So I turned off all plugins and switched to another theme. However still the same problem. Can you please give me an advice?

    Thanks.

    Regards,
    Arno

    • This topic was modified 4 months ago by Arno Baas.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

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

    It usually happens when you have an extra space character in some parts of your theme files (places where it shouldn’t be there). Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    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,

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

    Thank you.

    Hello,

    I have been checking the website and it seems it is a plugin creating a conflict but I also found the Health plugin has some trouble, since once I enabled it I was kicked out of the website (I think it disabled the Login plugin, so I can’t log in with the URL).

    Could you check it and enable again the login URL so I can enter again and finish finding the issue and solving it?

    Looking forward to help you.

    Hi Alberto,

    Thanks! The Health plugin is still deactivated.

    The URL should work. Can you please check again?

    Best regards,
    Arno

    Hello,

    I have found you are using a CDN (maybe StackPath). It seems it is caching the sitemap (so any change I do on the website is not reflected since I am getting the cached version). Could you temporarily disable it or at least set the sitemaps as not cache?

    Looking forward to help you.

    I changed some cache setting, so it should work right now.

    It seems to work! Thanks for your support.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Sitemap issue: error on line 2 at column 6’ is closed to new replies.