[resolved] Sitemap issue - code possibly? (19 posts)

  1. jenbajackson
    Posted 2 years ago #

    "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.

  2. linux4me2
    Posted 2 years ago #

    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.

  3. jenbajackson
    Posted 2 years ago #

    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.

  4. linux4me2
    Posted 2 years ago #

    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"
    	<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
    	<xsl:template match="/">
    		<html xmlns="http://www.w3.org/1999/xhtml">
    				<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="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>.
    				<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="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.

    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.

  5. jenbajackson
    Posted 2 years ago #

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

  6. jenbajackson
    Posted 2 years ago #


    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="http://www.eaptherapy.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl"?><!-- generator="wordpress/3.5" -->
    <!-- sitemap-generator-url="http://www.arnebrachhold.de" 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" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <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.

  7. linux4me2
    Posted 2 years ago #

    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?

  8. jenbajackson
    Posted 2 years ago #

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

  9. linux4me2
    Posted 2 years ago #

    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.

  10. jenbajackson
    Posted 2 years ago #

    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?

  11. linux4me2
    Posted 2 years ago #

    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.

  12. jenbajackson
    Posted 2 years ago #

    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.


  13. jenbajackson
    Posted 2 years ago #

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

  14. linux4me2
    Posted 2 years ago #

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

  15. jenbajackson
    Posted 2 years ago #

    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.

  16. jenbajackson
    Posted 2 years ago #

    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.


  17. jenbajackson
    Posted 2 years ago #

    Here's an example.

    EQUINE | Therapy | Maryland | Counseling | EAP | Stable Solutions ...
    Jennifer Bajackson, LGPC Stable Solutions, LLC P.O. Box 420. Sparks, MD 21152 410-409-2787 (no texting) stablesolutions@comcast.net. Skype: stable.
    You shared this – Limited

  18. linux4me2
    Posted 2 years ago #

    Try googling "site:eaptherapy.com" and it will list all the results just for your site.

  19. jenbajackson
    Posted 2 years ago #

    I see what you mean. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic