Yoast SEO
[resolved] [Plugin: WordPress SEO by Yoast] sitemap.xml error STILL throws this error after 2.2 release (3 posts)

  1. PMoffitt
    Posted 5 years ago #

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

  2. PMoffitt
    Posted 5 years ago #

    Problem solved. Ran the address through http://validator.w3.org/ to find lines 1 and 2 blank. Checked all .php files in theme until I found the problem, extra blank lines after the final /> in the functions file. Removed blank lines and sitemap.xlm now works fine. Just wanted to report back in case any one else has same problem.

    Looking forward to playing with latest version, thanks Yoast for making an awesome, useful plugin and giving it away for free!

  3. Joost de Valk
    Plugin Author

    Posted 5 years ago #

    Ah, yeah that would give issues indeed...

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic