• Resolved jenbajackson

    (@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. http://www.eaptherapy.com/solutions. 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:http://www.eaptherapy.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl
    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.

    Thread Starter jenbajackson

    (@jenbajackson)

    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 http://www.eaptherapy.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl 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"
                    xmlns:html="http://www.w3.org/TR/REC-html40"
                    xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    	<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
    	<xsl:template match="/">
    		<html xmlns="http://www.w3.org/1999/xhtml">
    			<head>
    				<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;
    						font-size:13px;
    					}
    
    					#intro {
    						background-color:#CFEBF7;
    						border:1px #2580B2 solid;
    						padding:5px 13px 5px 13px;
    						margin:10px;
    					}
    
    					#intro p {
    						line-height:	16.8667px;
    					}
    
    					td {
    						font-size:11px;
    					}
    
    					th {
    						text-align:left;
    						padding-right:30px;
    						font-size:11px;
    					}
    
    					tr.high {
    						background-color:whitesmoke;
    					}
    
    					#footer {
    						padding:2px;
    						margin:10px;
    						font-size:8pt;
    						color:gray;
    					}
    
    					#footer a {
    						color:gray;
    					}
    
    					a {
    						color:black;
    					}
    				</style>
    			</head>
    			<body>
    				<h1>XML Sitemap</h1>
    				<div id="intro">
    					<p>
    						This is a XML Sitemap which is supposed to be processed by search engines like <a href="http://www.google.com">Google</a>, <a href="http://search.msn.com">MSN Search</a> and <a href="http://www.yahoo.com">YAHOO</a>.<br />
    						It was generated using the Blogging-Software <a href="http://wordpress.org/">WordPress</a> and the <a href="http://www.arnebrachhold.de/redir/sitemap-home/" title="Google Sitemap Generator Plugin for WordPress">Google Sitemap Generator Plugin</a> by <a href="http://www.arnebrachhold.de/">Arne Brachhold</a>.<br />
    						You can find more information about XML sitemaps on <a href="http://sitemaps.org">sitemaps.org</a> and Google's <a href="http://code.google.com/sm_thirdparty.html">list of sitemap programs</a>.
    					</p>
    				</div>
    				<div id="content">
    					<table cellpadding="5">
    						<tr style="border-bottom:1px black solid;">
    							<th>URL</th>
    							<th>Priority</th>
    							<th>Change Frequency</th>
    							<th>LastChange (GMT)</th>
    						</tr>
    						<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
    						<xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
    						<xsl:for-each select="sitemap:urlset/sitemap:url">
    							<tr>
    								<xsl:if test="position() mod 2 != 1">
    									<xsl:attribute  name="class">high</xsl:attribute>
    								</xsl:if>
    								<td>
    									<xsl:variable name="itemURL">
    										<xsl:value-of select="sitemap:loc"/>
    									</xsl:variable>
    									<a href="{$itemURL}">
    										<xsl:value-of select="sitemap:loc"/>
    									</a>
    								</td>
    								<td>
    									<xsl:value-of select="concat(sitemap:priority*100,'%')"/>
    								</td>
    								<td>
    									<xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/>
    								</td>
    								<td>
    									<xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
    								</td>
    							</tr>
    						</xsl:for-each>
    					</table>
    				</div>
    				<div id="footer">
    					Generated with <a href="http://www.arnebrachhold.de/redir/sitemap-home/" title="Google Sitemap Generator Plugin for WordPress">Google Sitemap Generator Plugin for WordPress</a> by <a href="http://www.arnebrachhold.de/">Arne Brachhold</a>. This XSLT template is released under GPL.
    				</div>
    			</body>
    		</html>
    	</xsl:template>
    </xsl:stylesheet>

    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.

    Thread Starter jenbajackson

    (@jenbajackson)

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

    Thread Starter jenbajackson

    (@jenbajackson)

    Hi.

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

    img
    Lang

    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=”http://www.eaptherapy.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl&#8221;?><!– generator=”wordpress/3.5″ –>
    <!– sitemap-generator-url=”http://www.arnebrachhold.de&#8221; sitemap-generator-version=”3.2.8″ –>
    <!– generated-on=”December 30, 2012 1:44 pm” –>
    <!– Debug: Total comment count: 0 –>
    <urlset xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=”http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd&#8221; xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″&gt; <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?

    Thread Starter jenbajackson

    (@jenbajackson)

    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.

    Thread Starter jenbajackson

    (@jenbajackson)

    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
    Location: http://www.eaptherapy.com/sitemap.xml
    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.

    Thread Starter jenbajackson

    (@jenbajackson)

    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.

    Sincerely,
    Jennifer

    Thread Starter jenbajackson

    (@jenbajackson)

    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?

    Thread Starter jenbajackson

    (@jenbajackson)

    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.

    Thread Starter jenbajackson

    (@jenbajackson)

    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.

    j

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