How To Fix Yoast Sitemap Xml Declaration Error

error on line 2 at column 6: XML declaration allowed only at the start of the document

Looking at the issue queue I see that others have had the exact same error/issue but I never saw any resolution.

Bạn đang xem: How to fix yoast sitemap xml declaration error

Looking at the code it does appear that there is a blank line at the top of the error page (see screenshot).

I get the exact same issue using the XML Sitemap module so I know it"s not the module"s fault, I"m just hoping to find some insight into the cause of the error/issue as I"ve sầu spent a couple of days already trying to troubleshoot this.

Per some other threads, I"ve looked at custom modules & themes lớn see if there were any spaces before the opening CommentFileSizetác giả #2 output.jpg125.68 KB3CWebDev
Support from Acquia helps fund testing for 12guns.vn

*

Comments





*



*



*



Closing due khổng lồ lachồng of activity.

Xem thêm: Tìm M Để A Giao B Bằng Rỗng, A Giao B Khác Rỗng, Tìm M Để A Giao B Bằng Rỗng Biết A=


*



*





*





*





*

























david_neil_smith You don"t seem khổng lồ have sầu a problem with the module, just a misconfiguration.

but as you can see from the above it"s doesn"t seem to lớn show any pages.

The module needs to be configured first so it knows what kind of pages you want it lớn index; please refer khổng lồ the readme or the online documentation.

but providing this khổng lồ Google doesn"t work with Google reporting it cannot fetch it

If you can visit the site from a browser private window & see the sitebản đồ, so should google. No idea what the problem could be here, maybe hệ thống misconfiguration? In any case, please tìm kiếm through the issues in the queue in case this has been documented already. If it hasn"t, please open up a new support request, as this here ticket is about a different problem


Comment #20

thhafner CreditAttribution: thhafner commented 16 September 2021 at 18:16








*