error in the sitemap of the pages and entries of my website

  • Hello

    I’m having an issue with one of my websites. I have configured the RankMath and when I check that the sitemap works properly, I notice that the sections of pages-sitemap and post-sitemap I have the following problem:

    “This page contains the following errors:
    error on line 1 at column 7: XML declaration allowed only at the start of the document
    Below is a rendering of the page up to the first error.”

    Does anyone know what might be happening? The sitemap for my website is as follows:

    Thank you very much in advance

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

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

    The access provided don’t seem to work for me.

    It usually happens because you have in your current theme some empty or white space character at the end of the functions.php file. Could you check it?

    Looking forward to helping you. Thank you.



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

    Thank you.


    I have checked it now but it doesn’t seem to be happening anymore. Did you already fix it?

    Looking forward to help you.

    Hi Alberto!

    Well, the truth is that I haven’t touched anything, just updating the plugins these days. I’m glad it’s been solved.



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

The ticket ‘error in the sitemap of the pages and entries of my website’ is closed to new replies.