Sitemap error

#406514
  • Resolved Igwemma Cc
    Rank Math free

    This the error Message I got in my sitemap

    “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.”

    Please I need solution to this.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Sitemap error link to the error page

    Hello,

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

    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.

    I tried using rankmath troubleshooting Guide but I still get the error I have tried my best.. please help me

    Prabhat
    Rank Math agency

    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.

    Hello,

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

    Thank you.

    Hello,

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

    Thank you.

    Anas
    Rank Math business

    Hello,

    Could you please add the WordPress login URL in the sensitive data section?

    I tried with /wp-admin and wp-login but it is not working.

    Looking forward to helping you.

    Hello,

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

    Thank you.

    I have included the link to my wordpress dashboard..

    Anas
    Rank Math business

    Hello,

    I logged in to your website and checked for conflict.

    The theme is conflicting with Rank Math.

    The sitemap is working fine when the default theme is enabled.

    Check this screencast: https://i.rankmath.com/cSXUyG

    Please get in touch with your theme provider and inform them about the issue.

    Looking forward to helping you.

    Please Sir, is there any way you can help result the error in the theme. I really want to enjoy rank math SEO.

    I will be very very grateful!

    Prabhat
    Rank Math agency

    Hello,

    I logged into your website’s admin area but was unable to find any whitespace on your wp-config or functions.php file. It is likely that the whitespace is present in a file that is called in the wp-config or functions.php file.

    However, to fix this, I uploaded a new file in the root directory of your website called whitespacefix.php. This file checks and fixes the whitespace issue on the XML files.

    Further, I included this file at the beginning of the index.php file of the root directory using this code: include('whitespacefix.php');

    The sitemap is working properly now. You can clear your website’s cache and check it on your end.

    We still suggest you reach out to your theme developers to remove the additional line breaks/whitespaces from any file that is called in the above-mentioned files as otherwise, you’ll have to add the code (include('whitespacefix.php');) to the index.php file whenever you’ll update WordPress.

    Hope that helps.

    Thank you.

    Wow you guys are the best in the world. Everything is now working properly.

    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 14 replies - 1 through 14 (of 14 total)

You must be logged in to reply to this ticket.