Support » Fixing WordPress » Sitemap issue – code possibly?

  • Resolved jenbajackson


    “Errors -Sitemap is HTML

    Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.

    Issue Count:1

    Example – Tag: html

    Line 2″

    Google apparently can’t crawl my site – I think specifically my blog page. The above is the error message I receive when I test the sitemap.

    I have a Google XML sitemap plugin installed.

    Thank you.

Viewing 15 replies - 1 through 15 (of 18 total)
  • When I try to test your sitemap, I get the error:
    Error loading stylesheet: A network error occurred loading an XSLT stylesheet:
    You could try fixing the error, or just change to a different plugin after deactivating and uninstalling the one you’re using. Just make sure you delete the current sitemap file if it doesn’t. I’ve had good luck with Google XML Sitemaps.

    Hi Linux4me2,

    Thanks for your reply. How do I fix the error? I have Google XML Sitemaps installed. I am running WP 3.5 – could there be a compatibility issue with the plugin?

    Thank you.

    Oops, sorry. I didn’t realize you were already using that one. I don’t believe there is a compatibility issue with 3.5. I’m using it on a number of 3.5 sites with no problems. There could be an issue with another plugin, but the error message you’re getting makes me think it may just be an issue with the Google XML Sitemaps plugin itself.

    The first thing I would do is check to make sure the file is there on your server, that its size is 4 KB, and that its permissions are 644. You can also download it and make sure its contents look like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0"
    	<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
    	<xsl:template match="/">
    		<html xmlns="">
    				<title>XML Sitemap</title>
    				<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    				<style type="text/css">
    					body {
    						font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana;
    					#intro {
    						border:1px #2580B2 solid;
    						padding:5px 13px 5px 13px;
    					#intro p {
    						line-height:	16.8667px;
    					td {
    					th {
    					tr.high {
    					#footer {
    					#footer a {
    					a {
    				<h1>XML Sitemap</h1>
    				<div id="intro">
    						This is a XML Sitemap which is supposed to be processed by search engines like <a href="">Google</a>, <a href="">MSN Search</a> and <a href="">YAHOO</a>.<br />
    						It was generated using the Blogging-Software <a href="">WordPress</a> and the <a href="" title="Google Sitemap Generator Plugin for WordPress">Google Sitemap Generator Plugin</a> by <a href="">Arne Brachhold</a>.<br />
    						You can find more information about XML sitemaps on <a href=""></a> and Google's <a href="">list of sitemap programs</a>.
    				<div id="content">
    					<table cellpadding="5">
    						<tr style="border-bottom:1px black solid;">
    							<th>Change Frequency</th>
    							<th>LastChange (GMT)</th>
    						<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
    						<xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
    						<xsl:for-each select="sitemap:urlset/sitemap:url">
    								<xsl:if test="position() mod 2 != 1">
    									<xsl:attribute  name="class">high</xsl:attribute>
    									<xsl:variable name="itemURL">
    										<xsl:value-of select="sitemap:loc"/>
    									<a href="{$itemURL}">
    										<xsl:value-of select="sitemap:loc"/>
    									<xsl:value-of select="concat(sitemap:priority*100,'%')"/>
    									<xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/>
    									<xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
    				<div id="footer">
    					Generated with <a href="" title="Google Sitemap Generator Plugin for WordPress">Google Sitemap Generator Plugin for WordPress</a> by <a href="">Arne Brachhold</a>. This XSLT template is released under GPL.

    If all that looks good, I think I would next try uninstalling and reinstalling the Google XML Sitemaps plugin and retest.

    If none of that fixes it, then go Settings -> XML-Sitemap and click the “rebuild your sitemap” link, then retest.

    If it’s still broken, click the “debug function” link to get more info and post what you find here.

    Thank you. I will try that and let you know. Have a good day.


    Under the folder …/wp-content/plugins/google-sitemap-generator, there are two folders:


    In the public_html folder, I can find:

    sitemap.xml 6.2 KB text/xml 0644
    sitemap.xml.gz 1.1 KB package/x-generic 0644

    <?xml version=”1.0″ encoding=”UTF-8″?><?xml-stylesheet type=”text/xsl” href=””?><!– generator=”wordpress/3.5″ –>
    <!– sitemap-generator-url=”” sitemap-generator-version=”3.2.8″ –>
    <!– generated-on=”December 30, 2012 1:44 pm” –>
    <!– Debug: Total comment count: 0 –>
    <urlset xmlns:xsi=”” xsi:schemaLocation=”” xmlns=”″> <url>

    The rest of the above file does not match anything you posted. I havve uninstalled/reinstalled and have run the debug report. What should I post as it says not to post to forums?

    The error report is supposedly a html issue in line two. Not sure what I am not seeing.
    Thank you.

    Wait a second, you should have the following files in the /wp-content/plugins/google-sitemap-generator folder in addition to the two folders you mentioned:

    • documentation.txt
    • readme-ar_AR.txt
    • readme-it_IT.txt
    • readme.txt
    • screenshot-1.gif
    • screenshot-2.gif
    • screenshot-3.gif
    • sitemap-core.php
    • sitemap-ui.php
    • sitemap.php
    • and last, but not least, sitemap.xsl

    Do you see all those files in the folder?

    No, just the two I mentioned. I have looked thru the rest of the folders and can’t find them anywhere.

    I would say the absence of those files could be the problem. The sitemap is definitely looking in that folder for sitemap.xsl. I don’t see how it can be working without the files, or how you could run the sitemap at all without sitemap.php there.

    Have you tried downloading and manually installing the Google XML Sitemaps plugin using the instructions here?

    Once you’ve done that, the files have to be in the /wp-content/plugins/google-sitemap-generator folder. Then you can re-test.

    Okay, I think I have all of the files where they need to be but when I went to build the sitemap, I got the following:

    XML Parsing Error: no element found
    Line Number 1, Column 1:

    Do I not have the right type of file?

    You’re getting there.

    Take a look at this post.

    I think in your case, I would try just deleting the sitemap files from your site and rebuilding the sitemap first, before uninstalling/reinstalling and see if that gets rid of the error.

    Dear Linux4me2,

    I want to thank you very much for your help with this issue. I still don’t think I have it resolved even after doing all that you have graciously recommended. I am going to give it a few days to see if what I have done is just taking a bit to be recognized by Google.

    Again, I thank you very much. Have a pleasant day/evening.


    Think some element is working. At least I am listed in Google now.

    Yes, I see 125 results for you now in Google. Are you still getting errors anywhere?

    Yesterday when I checked the sitemap check tool, I was still getting the same error message. But since Google is now showing me, I figured it might be a cache problem or something. I did delete my cache on my computer, and resubmitted the sitemap thru the BlueHost feature that does it for me (Attracta, I think it is). I thought I would see how it goes for a few days. I am so grateful for all of your help. Thank you.

    When I search for the website, I get:

    10 personal results. 1,280 other results.

    The way it shows on my computer is the website only comes up for me because I have posted it. All of the other sites are the backlinks I have been developing – Facebook, Pinterest, etc.) I still think it is not right.


Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Sitemap issue – code possibly?’ is closed to new replies.