Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
This error normally comes up when another plugin or a theme modifies the sitemap but since you have already tested for conflicts, it is likely that there is some whitespace on your sitemap index arising from an empty space on your functions.php file.
You can quickly test if this is the case by switching to one of the stock WP themes and check if you can reproduce this issue.
Looking forward to helping you. Thank you.
I alreadey did that and the error keeps up.
I submit the sitemap link to Google Search Console and it’s ok, is valid. I only can’t read the file in the browser. It’s very strange.
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
We need you to add also your website link to the Sensitive Data section to be able to log in there.
Looking forward to help you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I have just fixed the issue. It was a space where it shouldn’t be in the theme functions.php file.
Now, as you can check, everything works fine.
Thank you.
I can see that.
But my staging is also with that problem.
It was in the functions.php in analuartes theme or futurio theme?
Hello,
It was in the analuartes theme, so you can copy the current content in the functions.php and paste it in your staging site.
Looking forward to help you.
I think I managed to solve this last problem.
Thank You
It solve my problem. Thank you.
But when i try to open this two links the error persists
https://analuartes.pt/post-sitemap.xml
https://analuartes.pt/page-sitemap.xml
Sorry all my questions.
Hello Ana,
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.