Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1117222

    hi !!!
    hope u re fine first

    i 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

    #1117306

    Hey 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,
    Rikard

    #1117418

    Hi 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 after

    so there is nothing in this case

    do u think i have to add something ?

    thank u !!!
    allen

    #1117599

    hi !!!! :)
    i find something interesting

    i 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 u

    #1117667

    Hi,

    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,
    Rikard

    #1171635

    I have experienced the same thing. Notice the first three lines of this screenshot:
    https://accesshardware.com/wp-content/uploads/Untitled.png

    Running latest version of Enfold.

    Here is the page where the error is thrown: https://accesshardware.com/sitemap_index.xml

    #1171987

    Hi,

    What did the Yoast Support said about the issue?

    Best regards,
    Basilis

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.