XML Parsing Error: XML or text declaration not at start of entity Location:

#218855
  • Resolved Freu
    Rank Math free

    hello Support Get an error:
    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://womens-stories.ru/sitemap_index.xml
    Line Number 10, Column 1:
    <?xml version=”1.0″ encoding=”UTF-8″?><?xml-stylesheet type=”text/xsl” href=”//womens-stories.ru/main-sitemap.xsl”?>
    ^
    How to fix that!?
    Thanks in advance!
    F

Viewing 1 replies (of 1 total)
  • Hello,

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    This error suggests that there must be some white spaces before the XML Sitemap’s source code.

    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 this guide: https://rankmath.com/kb/check-plugin-conflicts

    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.
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    Hope this helps. Let us know if you need any further assistance.

    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 ‘XML Parsing Error: XML or text declaration not at start of entity Location:’ is closed to new replies.