• Resolved mcclardhabitat

    (@mcclardhabitat)


    When I go to the XML link sitemap.xml I get the following error…

    This page contains the following errors:
    error on line 17 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 am using XML Sitemap Generator for WordPress 4.1.9 on WordPress 6.1.1

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @mcclardhabitat, thankyou for contacting us.

    We assume you have written print_r or echo; exit; in the code or the debug is ON.

    Kindly check and please share us the debug log and sitemap URL if further assistance required.

    Hi there, long time users and love the plugin but the same issue has arisen for the past 24 hours:

    compareforexbrokers dot com /sitemap.xml

    • This reply was modified 1 year, 10 months ago by grossbard.

    Hi there, I had a closer look at the issue over the past 24 hours and in the sitemap the first row is blank and the sitemap starts on the second line. No changes have been made to the sitemap since Thursday so I don’t feel this is my team adding a space before/after the sitemap. Any idea the fix for this?

    Hi @grossbard, thankyou for contacting us

    Please try the solution we have posted previously

    We assume you have written print_r or echo; exit; in the code or the debug is ON.

    If the issue is still there, please share the debug log. if further assistance required.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘XML declaration allowed only at the start of the document’ is closed to new replies.