Problems with sitemap in RankMath

#54929
  • Resolved Anonymous
    Rank Math free

    Cheers,
    First of all I want to thank you for the magnificent work you have done with this plugin.
    I have it installed on several web pages on the same server and only on one of the websites am I having a problem with the sitemap.
    When I configure it it throws the following error: error on line 3 at column 6: XML declaration allowed only at the start of the document.
    I do not know how to solve it and since it is an important aspect of the web, I would appreciate it if you could inform me of any solution in this regard.
    I am very grateful in advance.
    Rafa Monllor

Viewing 1 replies (of 1 total)
  • Michael Davis
    Rank Math pro

    Hello,

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

    This is caused by the blank line present in your sitemap.
    screenshot

    This might be added by a blank line/space in your wp-config.php file or your theme’s functions.php file. If there is no such blank space in your wp-config.php or functions.php file, check for a plugin conflict using the Health Check plugin.

    Also, make sure your cache is disabled as it is highly likely that the cache is interfering with the working of Sitemap functionality of Rank Math.

    Looking forward to helping you. 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 ‘Problems with sitemap in RankMath’ is closed to new replies.