Rankmath Sitemap isn’t working, Showing up a XML Error

#59579
  • Resolved Anirudh Pulikonda
    Rank Math free

    Here’s the error I’m seeing on the “Sitemap_Index.xml” page:

    `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.

    I’ve shared the sitemap URL in the sensitive data section and I’m using the rankmath’s latest version. Please help fix this. Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Alberto
    Rank Math business

    Hello,

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

    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.

    ​​​​​​​

    Hello,

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

    Thank you.

    Can you please check the issue? I’ve updated the sensitive data with credentials.

    Todd
    Rank Math free

    Hi Anirudh,

    Sorry for the issue you are facing.

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    Please check this screenshot which shows the Sitemap working fine when only Rank Math is enabled:

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Please let me know if you find the culprit.

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Looking forward to helping you.

    I’m not sure how you the sitemap showing the working screenshot. But I tried to check the sitemap and it’s still the same.

    I test using 10 different remote browsers in different locations. Every time same error. Please check again and help me out with this issue.

    Alberto
    Rank Math business

    Hello,

    The screenshot my colleague show you was just a screenshot about how you should see it once it is working.

    After a lot of testing, I was able to trace the issue to the Mayosis Core plugin. Inside it, at the folder ‘/library/theme-options/template/’, in the file tag-style.php, there was a space beginning the first line of the PHP file. After removing it, the issue was fixed. Could you check it?

    Looking forward to help you.

    Thanks, This fix of yours got the sitemap issue fixed.

    Alberto
    Rank Math business

    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)

You must be logged in to reply to this ticket.