AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] Sitemap.xml show an error "error on line 2 at column 6: XML declaration allowed only at the start of the document."

5 Posts
2 Users
1 Reactions
3,339 Views
Posts: 72
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@le-bear)
Estimable Member
Joined: 9 years ago
[#49336]

What can I do to fix this ?

2023 03 31 13 40 01 https   lebearcnc.com forums sitemap.xml et 3 pages de plus Personnel – Micros

4 Replies
Posts: 72
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@le-bear)
Estimable Member
Joined: 9 years ago

Opeing the source, i see the page has been "optimized" by W3 total cache. I am going to exclude it, and report here.


Posts: 72
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@le-bear)
Estimable Member
Joined: 9 years ago

Actually, I don't think Total cache is guilty here. Here is the source:

 
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//lebearcnc.com/wp-content/plugins/wpforo/assets/css/wpforo-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc> https://lebearcnc.com/forums/topic-sitemap1.xml</loc> 
	</sitemap>
	<sitemap>
		<loc> https://lebearcnc.com/forums/topic-sitemap2.xml</loc> 
	</sitemap>
	<sitemap>
		<loc> https://lebearcnc.com/forums/profile-sitemap1.xml</loc> 
	</sitemap>
	<sitemap>
		<loc> https://lebearcnc.com/forums/profile-sitemap2.xml</loc> 
	</sitemap>
	<sitemap>
		<loc> https://lebearcnc.com/forums/profile-sitemap3.xml</loc> 
	</sitemap>
	<sitemap>
		<loc> https://lebearcnc.com/forums/forum-sitemap.xml</loc> 
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by wpForo SEO -->
<!--
Performance optimized by W3 Total Cache. Learn more:  https://www.boldgrid.com/w3-total-cache/ 

Mise en cache objet de 0/74 objets utilisant redis
Mise en cache de page à l’aide de redis (Requested URI is rejected) 
Chargement lent
Mise en cache de la base de données utilisant redis  (Request-wide modification query)

Served from: lebearcnc.com @ 2023-03-31 13:34:22 by W3 Total Cache
-->

Should not this line be the first ?

<!-- XML Sitemap generated by wpForo SEO -->

If you confirm, and tell me where this is generated, I guess I can fix this.

Thnaks for your help.


Chris
Posts: 3609
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@chris)
Famed Member
Joined: 5 years ago

Hi @le-bear,

We have checked the URL, as it is in the Screenshot you provided, and the page works.

Just note if you have done any manipulations, please bring them back to default(not to get any problems).


Posts: 72
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@le-bear)
Estimable Member
Joined: 9 years ago

Yes, thank you, I found the guilty plugin in between...


Share: