Support » Plugin: Yoast SEO » XML sitemap putting out parsing error

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter spencerpad

    (@spencerpad)

    Scratch that, I deactivated/reactivated and it didn’t work. WordPress 3.5 and an up to date WordPress SEO plugin.

    Having this same problem as well. Would love to know a fix. You can see my error here:
    http://www.kateryanskincare.com/sitemap_index.xml

    XML Parsing Error: XML or text declaration not at start of entity
    Location: http://www.kateryanskincare.com/sitemap_index.xml
    Line Number 2, Column 1:

    Thread Starter spencerpad

    (@spencerpad)

    I think this is new with the latest version of wordpress SEO, I wonder if there is a way to rollback?

    You can rollback by manually downloading a previous version (see link below), and replacing the new one in your plugins folder.

    http://wordpress.org/extend/plugins/wordpress-seo/developers/

    Thread Starter spencerpad

    (@spencerpad)

    FMGguy, I have found the problem, however I have not figured out how to solve it yet.
    Something in my theme (it works with other themes) somehow adds one line of space in the beginning of sitemap_index.xml, causing the error. After testing it in Google, it still reads it.
    That said, if we can figure out how to remove the space it will work.

    This has been an ongoing problem for me intermittently thru many versions of WP-SEO. I eventually turned the sitemap option off and installed Site Tree plugin; there are a number of other sitemap plugins as well.

    The added whitespace might be from any plugin or functions.php file that has a space outside of <?php ... ?>. That’s where if found it n a plugin I wrote that gave me this error. Fixing the whitespace fixed the problem here.

    404 error was fixed after resaving permalinks.

    Hey Andy, thanks much for letting us know about that spacing issue. Removing one space outside the PHP tags on my function file fixed it. Awesome!

    Thread Starter spencerpad

    (@spencerpad)

    Thanks for the advice. So far I haven’t been so lucky, I have looked through just about every document on my site trying to find the whitespace. Does anyone have any debugging tips on finding a hard to identify whitespace?

    Look in your include functions if u have. i just fixed it because of one space to in a sidebars.php.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘XML sitemap putting out parsing error’ is closed to new replies.