Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #124320

    Tim B
    Participant

    Hi,

    I am getting a fault when generating the sitemap using Yoast SEO. When I view source of the error there is a large white gap before the opening <?xml

    I have decativated the plugins (except yoast) and then a 404 error is visible when creating the sitemap. I have had a look at the functions file and all seems ok.

    So I am stuck I am not sure if its a plugin or the theme. I believe prior to updating to 4.0 all was ok.

    Thanks in advance

    Tim

    http://www.webbal.co.uk/sitemap_index.xml

    #124450

    Zeshan
    Member

    Hi Tim,

    Thank you for writing in!

    You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

    Please also review this thread: https://wordpress.org/support/topic/sitemap-error-xml-declaration-allowed-only-at-the-start-of-the-document

    Thanks!

    #124882

    Tim B
    Participant

    Hi there, thank you for your reply. I deactivated all the plugins other than yoast SEO and the problem is still there sadly

    #125076

    Cousett
    Member

    Can you confirm that you are fully updated? (Theme and Plugins)

    The latest version of X is 2.6.0 and the x-shortcodes plugin is 2.5.0. Please verify you have both of these versions, they need to be in sync or Javascript issues can occur.

    You can find the latest version numbers here: (http://theme.co/x/member/changelog/) Then you can compare them to what’s installed on your site.

    If you find anything to be out of date, you can review our update guide.

    #125179

    Tim B
    Participant

    both are in date

    #125364

    Kosher K
    Member

    Hi Tim,

    I try to create create a sitemap on my install using WordPress SEO and don’t have any issue.

    Would you mind providing wordpress and FTP access of your site for us to troubleshoot the issue,

    Thank you

    #125368

    Tim B
    Participant
    This reply has been marked as private.
    #125641

    Paul R
    Moderator

    Hi Tim,

    Check your themes functions.php file and other plugins for trailing whitespace (or opening whitespace) outside of the <?php and ?> tags. I think something is outputting whitespace before the SEO plugin has a chance to display the sitemap and that is the most likely cause.

    Hope that helps

    #125758

    Tim B
    Participant

    Could it be wordpress itself? I’ve installed twentyfourteen, deactivated all plugins except yoast and the problem still exists.

    #125795

    Kosher K
    Member

    Probably an issue with your installation,

    You can try re-installing it under Dashboard > Updates or install a fresh copy of wordpress