• Resolved rocketmena

    (@rocketmena)


    I am using Yoast SEO plugin. I am facing issue in my Sitemap xml file. Its showing me the error – “error on line 4 at column 6: XML declaration allowed only at the start of the document”. I searched for this and found that the whitespace is causing the issue. I checked my wp-config.php and functions.php file but there was no whitespace.
    Please help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Jerlyn

    (@jerparx)

    Hi,

    Sorry to hear about the issue you are having with your sitemap.

    An empty whitespace or a blank line appears due to a conflict with another plugin or your theme. Usually, there is an empty space or a blank line before or after the closing PHP opening or closing tag, which shouldn’t be there.
    ?
    You can narrow down the exact source of conflict by performing a conflict check. Once you have identified whether your theme or a plugin causes the issue, please contact the developers of that theme or plugin for assistance in finding and removing the whitespace.

    Plugin Support Jerlyn

    (@jerparx)

    Closed due to inactivity.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sitemap XML issue’ is closed to new replies.