Sitemap error

#56972
  • Resolved Andymason
    Rank Math free

    Hi I am getting the sitemap 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.

    I have narrowed it down to the theme and although I found a blank line at the end of the wp-config.php this did not solve the issue.
    I do not see any obvious issues in the site templates and need your help to get things working.
    Thank you
    Andy Mason

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

    I just fixed it for you. In your parent theme (“wordpress-bootstrap-master”), at the end of the functions.php file, you had two empty lines.

    I deleted them, saved the changes and now your sitemap is working. Could you check it?

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Thank you
    Issue solved, never thought to check the parent theme

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

The ticket ‘Sitemap error’ is closed to new replies.