New Zenner
- Join Date:
- Oct 2007
- Location:
- Atlanta, GA
- Posts:
- 79
- Plugin Contributions:
- 0
Post #621 by rlfreshwater
Andrew (from Dublin):
DONE! Thanks! I will check the status a little later to see if that worked.
New Zenner
Andrew (from Dublin):
DONE! Thanks! I will check the status a little later to see if that worked.
Totally Zenned
Interesting- I added the 'url' attribute to the xml headers and now Google Webmaster is issuing warnings left right and centre (I forgot the important lesson: "If it ain't broke, don't fix it"). It would appear that Google and Sitemap.org do not agree:
https://www.google.com/webmasters/tools/docs/en/protocol.html#sitemapValidation
versus
Andrew
Andrew Moore
Omnicia Agile Development
www.omnicia.com
New Zenner
I've had a site built for me using ZC 1.3.8 and now I have a question re Google Sitemaps. Sadly my developer is off on a long holiday otherwise I'd ask him.
I've registered with Google Webmaster which is crawling the site but says I don't have a Site Map. Looking at my site I can see the the Site Map code so how do I submit it to Google?
I went into Tools - Google XML Sitemap Admin and created (but did nothing else) the following code:
Google Sitemap Generation (v 1.3.19 20.04.2008 17:24) started
Save path - "/home/sites/xxx.com/public_html/"
Base URL - "http://www.xxx.com/"
File "robots.txt" not found in save path - "/home/sites/xxx.com/public_html/robots.txt"
Processing file: /home/sites/xxx.com/public_html/sitemapproducts.xml OK! Written 20 records, 4458 bytes
Generated Google Product Sitemap Successfully - http://www.xxx.com/sitemapproducts.xml
Processing file: /home/sites/xxx.com/public_html/sitemapcategories.xml OK! Written 9 records, 2081 bytes
Generated Google Category Sitemap Successfully - http://www.xxx.com/sitemapcategories.xml
Processing file: /home/sites/xxx.com/public_html/sitemapezpages.xml OK! Written 8 records, 1564 bytes
Generated Google EZPages Sitemap Successfully - http://www.xxx.com/sitemapezpages.xml
Processing file: /home/sites/xxx.com/public_html/sitemapindex.xml OK! Written 3 records, 733 bytes
Generated Google Sitemap Index Successfully - http://www.xxx.com/sitemapindex.xml
Total Execution Time 0:0.2610
Is this correct? Does "File 'robots.txt' not found...." indicate a problem? Finally, where does this Site Map actually go in my site so Google registers it?
Apologies for the long post.
Paulyrob
Totally Zenned
paulyrob:
I've had a site built for me using ZC 1.3.8 and now I have a question re Google Sitemaps. Sadly my developer is off on a long holiday otherwise I'd ask him.
I've registered with Google Webmaster which is crawling the site but says I don't have a Site Map. Looking at my site I can see the the Site Map code so how do I submit it to Google?
I went into Tools - Google XML Sitemap Admin and created (but did nothing else) the following code:
Google Sitemap Generation (v 1.3.19 20.04.2008 17:24) started
Save path - "/home/sites/xxx.com/public_html/"
Base URL - "http://www.xxx.com/"
File "robots.txt" not found in save path - "/home/sites/xxx.com/public_html/robots.txt"Processing file: /home/sites/xxx.com/public_html/sitemapproducts.xml OK! Written 20 records, 4458 bytes
Generated Google Product Sitemap Successfully - http://www.xxx.com/sitemapproducts.xmlProcessing file: /home/sites/xxx.com/public_html/sitemapcategories.xml OK! Written 9 records, 2081 bytes
Generated Google Category Sitemap Successfully - http://www.xxx.com/sitemapcategories.xmlProcessing file: /home/sites/xxx.com/public_html/sitemapezpages.xml OK! Written 8 records, 1564 bytes
Generated Google EZPages Sitemap Successfully - http://www.xxx.com/sitemapezpages.xmlProcessing file: /home/sites/xxx.com/public_html/sitemapindex.xml OK! Written 3 records, 733 bytes
Generated Google Sitemap Index Successfully - http://www.xxx.com/sitemapindex.xmlTotal Execution Time 0:0.2610
Is this correct? Does "File 'robots.txt' not found...." indicate a problem? Finally, where does this Site Map actually go in my site so Google registers it?
Apologies for the long post.
Paulyrob
My post 3 messages back pretty much answers that.
Andrew
Andrew Moore
Omnicia Agile Development
www.omnicia.com
New Zenner
Doh!
Sometimes you just can't see the wood for the trees.
Thanks
Totally Zenned
paulyrob:
Doh!
Sometimes you just can't see the wood for the trees.
Thanks
No problems, I've attached a default robots.txt file- Just change the bit that says "YOUR_WEBSITE_ADDRESS" to match the address of your website and ftp it to the root folder of your zencart site.
Andrew
Andrew Moore
Omnicia Agile Development
www.omnicia.com
Deceased
Hi hem,
hem:
Interesting- I added the 'url' attribute to the xml headers and now Google Webmaster is issuing warnings left right and centre (I forgot the important lesson: "If it ain't broke, don't fix it"). It would appear that Google and Sitemap.org do not agree:
https://www.google.com/webmasters/tools/docs/en/protocol.html#sitemapValidation
versus
What do you think about this? I think better to do as the Google - he knows better :smile:
NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Totally Zenned
a_berezin:
What do you think about this? I think better to do as the Google - he knows better :smile:
I agree- As Google Webmaster is the tool that everyone's measuring your mod by, better to be Google friendly at the moment. I'm going to check in a few of the Google groups though to find out why the sitemap.org header is not being followed.
Great mod by the way.
Andrew
Andrew Moore
Omnicia Agile Development
www.omnicia.com
Deceased
hem:
Great mod by the way.
Thank you. In the near future will be version 2.0.
NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Totally Zenned
Looking forward to it- One item for the wishlist (if it's not already there): If the robots.txt does not exist, create a default file with the sitemap: directive added. If it does exist, see if the sitemap: directive is in it- add it if not and set to the correct sitemap.xml if it is.
Andrew
Andrew Moore
Omnicia Agile Development
www.omnicia.com
Totally Zenned
hem:
Interesting- I added the 'url' attribute to the xml headers and now Google Webmaster is issuing warnings left right and centre (I forgot the important lesson: "If it ain't broke, don't fix it"). It would appear that Google and Sitemap.org do not agree:
https://www.google.com/webmasters/tools/docs/en/protocol.html#sitemapValidation
versus
I've checked this issue out- It's all over the web. Anyone that's written a sitemap program have come across it. Even Google's Sitemapper uses this attribute (and then causes issues in Google Webmaster). I cannot find any official response from Google regarding the issue, apart from a French Google Group post where someone said it was a clash between the attribute name and the tag name <URL>.
On the plus side, while it causes a warning in Google Webmaster, it does not stop the sitemaps from being processed.
Andrew
Andrew Moore
Omnicia Agile Development
www.omnicia.com
Deceased
Andrew,
I just removed the check robots.txt.
Let's discuss it.
NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Totally Zenned
a_berezin:
Andrew,
I just removed the check robots.txt.
Let's discuss it.
Sure.
In the meantime, I asked for some clarification on the Google Webmaster Google Group regarding the URL tag. Thread is here:
http://groups.google.ie/group/Google_Webmaster_Help-Sitemap/browse_thread/thread/a4199848b3b9df54
Andrew
Andrew Moore
Omnicia Agile Development
www.omnicia.com
Deceased
Hi Andrew,
Thanks.
NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
New Zenner
Just wanted to report that it appears to be working properly. Thanks again to both Andrews for the help.
Zen Follower
a_berezin:
rlfreshwater,
I think I found it.
googlesitemap.php
find:
$header .= ' xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9' . "\n";
$header .= ' http://www.sitemaps.org/schemas/sitemap/0.9/' . ($tag == 'urlset' ? 'sitemap' : 'siteindex') . '.xsd"' . "\n";
> replace by
> ```
$header .= ' xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9"' . "\n";
$header .= ' url="http://www.sitemaps.org/schemas/sitemap/0.9/' . ($tag == 'urlset' ? 'sitemap' : 'siteindex') . '.xsd"' . "\n";
Hi Andrew,
Please tell me if I did correct.
I didnt find $header .= ' in googlesitemap.php, instead it I have:
// Utility function to format the Google XML Header
function GoogleXMLHeader($tag){
return '<?xml version="1.0" encoding="UTF-8"?'.'>' . "\n" .
(GOOGLE_SITEMAP_USE_XSL == 'true' ? '<?xml-stylesheet type="text/xsl" href="gss.xsl"?'.'>' . "\n" : "") .
'<' . $tag . ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' . "\n" .
' xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9' . "\n" .
' http://www.sitemaps.org/schemas/sitemap/0.9/' . ($tag == 'urlset' ? 'sitemap' : 'siteindex') . '.xsd"' . "\n" .
' xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n";
}
And I changed 2 lines :
' xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9"' . "\n" .
' url="http://www.sitemaps.org/schemas/sitemap/0.9/' . ($tag == 'urlset' ? 'sitemap' : 'siteindex') . '.xsd"' . "\n" .
Thanks
Deceased
NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Zen Follower
a_berezin:
- You use very old version;
- Ignore this patch.
A new version is available?:cool:
Zen Follower
Everytime i update my sitemap everything works fine...but then when i go to
http://www.rickiesdiscountelectronics.com/sitemapindex.xml
i get this everytime ive tried every time:
Error loading stylesheet: A network error occured loading an XSLT stylesheet:http://www.rickiesdiscountelectronics.com/gss.xsl
please help me ive been trying to fix this for a while thanks
Deceased
xordox:
A new version is available?:cool:
Yes, indeed, the old version in DL. :(
The new version has long been ready, but since then I completely rewrote the module and will lay out a new version under a new name. A support googlesitemap will be discontinued.
NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Tell staff why this post should be reviewed.