-
AuthorPosts
-
July 9, 2019 at 11:21 pm #1117222
hi !!!
hope u re fine firsti have a problem when i want to see my sitemap witth yoast
i get this message :
This page contains the following errors:
error on line 4 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.would u mind to help me to fix it ?
thank u
Allen
July 10, 2019 at 7:58 am #1117306Hey allen,
I can’t see any error messages on the page you linked to, wouldn’t it be better to reach out to the authors of Yoast instead of us though?
Best regards,
RikardJuly 10, 2019 at 12:48 pm #1117418Hi Rikard !
thank fir ur answer !Yoast wrote to me :
Hello,Thank you for contacting the Yoast support team.
We do know that this error typically happens when a plugin or theme function incorrectly adds empty whitespace at the beginning of the sitemap. The Yoast SEO for WordPress Premium plugin does not cause this issue. You may refer to this KB article for more information about the issue — Sitemap error: XML declaration allowed only at the start
Most often, the cause is an empty line at the end of the functions.php file. If there is no empty line in this file, we highly recommend running a conflict check to identify what outputs the empty white space. You may also need to clear your cache from your plugins/theme/CDN such as Cloudflare/server caching etc. If you are not sure how to clear the cache, please speak with your developers or contact your host provider. Once you have identified whether your theme or a plugin causes the issue, please contact the developers of the theme or plugin for assistance in finding and removing the whitespace.
>>>> i think to that i made something wrong with my website
i touch 3 week ago in my child theme, in theme functions something and i delete ecerything afterso there is nothing in this case
do u think i have to add something ?
thank u !!!
allenJuly 10, 2019 at 9:29 pm #1117599hi !!!! :)
i find something interestingi have when i View page source something strange
( below my link )line 1+2+3 are empty
i manage other website with enfold and there isn t this problem ( ex below )
would u mind to give me an advice to fix this problem ???
thank uJuly 11, 2019 at 5:22 am #1117667Hi,
Thanks for the update, though I’m still not following you. Where exactly are you seeing empty lines? Does this problem occur when you run one of the default WordPress themes as well?
Best regards,
RikardJanuary 8, 2020 at 10:18 pm #1171635I have experienced the same thing. Notice the first three lines of this screenshot:
https://accesshardware.com/wp-content/uploads/Untitled.pngRunning latest version of Enfold.
Here is the page where the error is thrown: https://accesshardware.com/sitemap_index.xml
January 9, 2020 at 10:34 pm #1171987Hi,
What did the Yoast Support said about the issue?
Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.