sitemap crashed

#354330
  • Resolved francoispe
    Rank Math free

    Hello,
    I face an issue with sitemap from RankMath.
    I use RankMath + W3 Total cache.
    Before using Total cache my sitemap had the 17 pages it should have.
    After, I face a sitemap error in google console.
    I deactivate total cache and remove (rm -r) cache directory
    I follow https://rankmath.com/kb/incorrect-http-header-content-type-sitemap-error/ process
    But, after all that, it gives following error :

    This page contains the following errors:
    error on line 2 at column 6: XML declaration allowed only at the start of the document
    Below is a rendering of the page up to the first error.

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

    Hello,

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

    The error on your sitemap page suggests there must be some white spaces before the XML Sitemap’s source code.

    Please follow this troubleshooting guide to fix that issue:
    https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration

    I hope this helps.

    Looking forward to helping you.

    Hello,

    I try remove white space in wp-config.php
    This file starts with <?php and end with ?> : no other characters..
    I try remove white spaces in functions.php and I try changing theme using generate press. Nothing happen !
    I try deactivate all plugins
    No change !
    I don’t know from where it is coming…

    Anyway, the first strange behavior is that sitemap contains only 1 url…

    Any idea to help me ?

    Anas
    Rank Math business

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    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.

    Thanks for your proposal.
    I finally solve by creating a sitemap in php through my child theme
    François

    Hello,

    We are glad that you were able to resolve the issue.

    Please don’t hesitate to get in touch in case you need any other assistance.

    Thanks.

    Many thanks 🙂

    Hello,

    You’re welcome! 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 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this ticket.