Cannot create Yoast sitemap due to parsing error
-
I posted this on github a month ago and got no replies. Cannot create sitemap. Cannot get my website listed with search engines, without a sitemap, although I can be found on google, but ranking is poor. I most definitely have my sitemap switched on in my wp-admin dashboard, under yoast / features. have added health check and ran troubleshooting as per https://kb.yoast.com/kb/xml-sitemap-errors/ and https://kb.yoast.com/kb/how-to-check-for-plugin-conflicts/
but I could not find the conflict and tried another theme and sitemap plugin, disabled all plugins but yoast; reset my permalinks, but no matter what I did – when I tried to view the sitemap_index.xml, I got the following message:
XML Parsing Error: XML or text declaration not at start of entity
Location: https://eco-health.co.nz/sitemap_index.xml
Line Number 4, Column 1:
^One solution was stated:
There are probably several lines of whitespace preceding the <?xmltag
What should I do, as I need more detailed instruction than what was given by yoast about how to fix this, for which file to edit and exactly what error to remove. And it may not be that at all….
Any suggestions?Thanks, GillThe page I need help with: [log in to see the link]
- The topic ‘Cannot create Yoast sitemap due to parsing error’ is closed to new replies.