Cannot generate sitemap

#303080
  • Resolved Dishant Shah
    Rank Math free

    Hello I kept getting this error:

    error on line 2 at column 6: XML declaration allowed only at the start of the document Rankmath

    I cleared all white spaces in WP-Config.php and functions.php file now I am getting this error:

    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://MyDomain.com/sitemap_index.xml
    Line Number 2, Column 1:
    <?xml version=”1.0″ encoding=”UTF-8″?><?xml-stylesheet type=”text/xsl” href=”//MyDomain.com/main-sitemap.xsl”?>
    ^

    Can you please help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    I tried logging in to your website but I am not able to access the dashboard.

    Please check the screenshot in the sensitive data section.

    Please disable the Firewall or if you have geo-restrictions, you can temporarily disable them for India, Portugal, and the Philippines to further investigate this issue.

    As you have already checked the wp-config and functions.php file, it would seem like a conflict with the theme or plugins.

    Please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    I hope this helps.

    Looking forward to helping you.

    Hello,

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

    Thank you.

    Hello,

    After conducting a plugin/theme conflict troubleshooting I noticed your theme is conflicting with Rank Math’s sitemap generation as you can see my screencast in the Sensitive Data section.

    Please contact the support folks from your theme provider and ask if they have encountered this issue before. See if they may be able to provide a working solution as well.

    Let us know how that goes. Looking forward to helping you with this one.

    I will reach out to find out what can be done about this issue. Thank you for your help and for troubleshooting this issue.

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

You must be logged in to reply to this ticket.