I released a new site yesterday and tonight its first cronjob appeared *yay*.
Unfortunatley the sitemap was sent to times to all searchengines:
xmlsitemap 21.08.2009 - 05:05 Die Sitemap wurde erfolgreich an Yahoo! übertragen. Gast
xmlsitemap 21.08.2009 - 05:05 Die Sitemap wurde erfolgreich an Google übertragen. Gast
xmlsitemap 21.08.2009 - 05:05 Die Sitemap wurde erfolgreich an Bing (formerly Live ... Gast
xmlsitemap 21.08.2009 - 05:05 Die Sitemap wurde erfolgreich an Ask.com übertragen. Gast
xmlsitemap 21.08.2009 - 05:05 Die Sitemap wurde erfolgreich an Yahoo! übertragen. Gast
xmlsitemap 21.08.2009 - 05:05 Die Sitemap wurde erfolgreich an Google übertragen. Gast
xmlsitemap 21.08.2009 - 05:05 Die Sitemap wurde erfolgreich an Bing (formerly Live ... Gast
xmlsitemap 21.08.2009 - 05:05 Die Sitemap wurde erfolgreich an Ask.com übertragen. Gast
My crontab:
5 5 * * * wget -O - -q -t 1 http://www.example.com/cron.php
Do you have any ideas why this happens? Could this be the matter why google has no content indexed yet?
Comment | File | Size | Author |
---|---|---|---|
#5 | 555574-engines-submit-twice-D6-1.patch | 1.03 KB | Dave Reid |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedThere is no reason that I know of that should cause the cron hook to execute more than once other than perhaps the instance of using cron.php in a crontab and having poorman's cron enabled at the same time. I do use this module in a live site and have zero issues with submitting the sitemap to search engines. Google would be the only one to answer why your site isn't indexed by their service. I doubt that this issue would be a result to non-index.
Comment #2
SaxxIng CreditAttribution: SaxxIng commentedSame problem to me too.
I have a site with two languages (but english is not the default one) and "Add all the links to the default language sitemap" checked. Is this a possible cause?
The duplicated log row are exactly identical (time and text).
Ask me if you need some other infos!
Regards,
Saxx
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedMaybe possible. Are you able to test different scenarios to narrow down what you see?
Comment #4
Dave ReidThis happens because of this code in xmlsitemap_engines_cron():
We automatically submit sitemaps for all enabled languages. One of the issue reporters already established he has two enabled languages. I'd be willing to bet the original issue reporter has two languages as well. With the change to xmlsitemap_engines_submit_sitemap() in #537140: Error occurred submitting sitemap to Google: 400. you would see the different language sitemaps in the watchdog messages.
What we should do is skip looping through all languages if
variable_get('xmlsitemap_all_links_to_default_language', 0)
is TRUE and only submit the default language sitemap.Comment #5
Dave ReidPlease give the attached patch a try. If you have the "Add all the links to the default language sitemap" option enabled, it should only submit once to each search engine.
Comment #6
xmarket CreditAttribution: xmarket commentedHi!
I applied this patch on my site without errors, and seems to be working very well. I run the cron many times, and the problem disappeard. On my site the "Add all the links to the default language sitemap" option enabled, and my sitemap not submitted any of the search engines. The content didn't changed on my site during the test, and I use the xmlsitemap 6.x-1.1 version.
Comment #7
a.a.egoroff CreditAttribution: a.a.egoroff commentedSubsr. I`m near site release. I will test patch as soon as possible.
Comment #8
haggins CreditAttribution: haggins commentedThanks for the patch but I don't think it will work for me since I have only one enabled language (german). I'm too busy at the moment to have a deeper look into this issue, sorry.
"Add all the links to the default language sitemap" is disabled.
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #10
Dave ReidCommitted to CVS.
http://drupal.org/cvs?commit=260456
Comment #12
edjay CreditAttribution: edjay commentedI have the same problem with one language enabled only, i have tested to enable "Add all the links to the default language sitemap" but it seems not working
Comment #13
Dave Reid@edjay Are you using the latest 6.x-1.x-dev? Because this fix isn't yet included in the official release.
Comment #14
edjay CreditAttribution: edjay commentedOk sorry and thx Dave, i am using the recommended version.
Do you think i can switch to the dev without meeting many problems ?
Comment #15
Dave Reid@edjay: No, there shouldn't be any problems using the dev versions like there were before. When we make a 6.x-1.2 release though, you'll want to upgrade to that again.
Comment #16
edjay CreditAttribution: edjay commentedOki, very nice Dave and thx for this module