error on line 2 at column 6

#53332
  • Resolved Anonymous
    Rank Math free

    Everything about this plugin has worked great except for creating a simple Sitemap for my wordpress site. When I click on the sitemap link for my site (https://artbyfemchie.com/sitemap_index.xml) I get this error message:

    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.

    I have read up on the articles you have suggested and followed every guidance out there (remove any white lines between <? and ?> within functions.php, wp-config.php, etc; I have also disabled all plugins, even deleted some, and that still hasn’t fixed the issue at all.

    So why am I not able to resolve this? Please can anyone help?
    This Plugin is great and I wish to not want to remove it and go back to Yoast SEO or Google XML.

    Please help.

    Thanks,
    Fem

Viewing 1 replies (of 1 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.

    That error, as you found, is caused by some white spaces. Since you were not able to find them, if you want, we could 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.
    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,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘error on line 2 at column 6’ is closed to new replies.