#8152 closed defect (fixed)
The essential "<lastmod>" tag is there but empty, thus Google refuses processing
Reported by: | Lars Stavholm | Owned by: | Martin Scharrer |
---|---|---|---|
Priority: | highest | Component: | GoogleSitemapPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
The <lastmod>
tag is present in the output, but with an empty value, thus no processing takes place at Google. Using Trac 0.12.1 with googlesitemapplugin/0.11 and Python 2.6.5. Nicer formatting of the output would also be appreciated (easier to debug). Sample sitemap.xml attached.
Attachments (1)
Change History (7)
comment:1 Changed 14 years ago by
comment:2 follow-up: 3 Changed 14 years ago by
Status: | new → assigned |
---|
Hi, thanks for reporting this issue. I have to check why this appears now. Maybe it's Trac 0.12. I will have a look on it this weekend.
comment:3 Changed 14 years ago by
Replying to martin_s:
Hi, thanks for reporting this issue. I have to check why this appears now. Maybe it's Trac 0.12. I will have a look on it this weekend.
I gave it a whirl and found that it was the call to _fixtime()
that messed things up. I simply removed the call on lines 92 and 104, and that seems to do the trick. However, the _fixtime()
calls were there for a reason that eludes me. I'll try to attach the patch, but the spam filter here might stop me.
comment:4 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 follow-up: 6 Changed 14 years ago by
Thanks for looking into it. This way it will be fixed much sooner because I don't have much time for debugging it myself at the moment.
The _fixtime
method is required to ensure a colon between the hour and minute in the datetime string. Not all trac version, if any, include it, but Google requires it. There is an else clause missing, which results in an empty string if the colon is not missing or the datetime string is in Z
(GMT) format.
I now added the missing else clause which should fix it. Could you please check if the new version [9514] works properly and reopen this ticket if not.
Thank you very much. Martin
comment:6 Changed 14 years ago by
Replying to martin_s:
Thanks for looking into it. This way it will be fixed much sooner because I don't have much time for debugging it myself at the moment.
The
_fixtime
method is required to ensure a colon between the hour and minute in the datetime string. Not all trac version, if any, include it, but Google requires it. There is an else clause missing, which results in an empty string if the colon is not missing or the datetime string is inZ
(GMT) format.I now added the missing else clause which should fix it. Could you please check if the new version [9514] works properly and reopen this ticket if not.
Thank you very much. Martin
Works nicely now. Cheers/Lars
Replying to stava@linadd.org:
Sorry, the spam filter prevented me from attaching the sitemap.xml. instead, have a look at http://www.linadd.org/addons/sitemap.xml.