Yoast SEO
[resolved] [Plugin: WordPress SEO by Yoast] WordPress SEO Sitemap Parsing Error (2 posts)

  1. jasongolod
    Posted 3 years ago #

    Been searching here for an answer as well as at Yoast, but having no luck. I am getting a parsing error when I try to view the sitemap:

    XML Parsing Error: XML or text declaration not at start of entity
    Location: http://www.golod.com/sitemap_index.xml
    Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.golod.com/wp-content/plugins/wordpress-seo/css/xml-sitemap-xsl.php"?>

    Would love to hear anyone's ideas.




  2. jasongolod
    Posted 3 years ago #

    Pffft, I am a jerk. Looking in the wrong place.

    These types of messages apparently refer to whitespace somewhere in one of the files. Fortunately, I had only modified a few template files recently, so I didn't have too far to search. Turns out I had an extra line break in my functions.php file that I modified.

    This may also help someone in the same boat:

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic