I'm getting errors in
sitemap_index.xml which is xml generated by Yoast plugin.
Below is the error that I'm getting:
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 know that there is a whitespace and I had a look at
functions.php and other files but they all seem normal without any extra actions triggering whitespaces at the top.
I could probably disable and enable one plugin one by one and try it that way but is unsure whether this is a good option as there is a rist involved in losing plugin configurations or any setups done on the plugins when deactivated.
Does anyone have any suggestions?