Summary: This is a bug in Zope 2.6.0. One way to fix it: replace
the SOFTWARE_HOME/lib/python/DateTime/DateTime.py
file with the
latest DateTime?.py
and restart zope.
Another: ZopeTwoSixDateTimeFix?.
I think this bug is different from [[[#270 with zope 2.6.0, dtml pages like UserOptions, RecentChanges, SearchPage are broken] with zope 2.6.0, dtml pages like UserOptions?, RecentChanges?, SearchPage? are broken] with zope 2.6.0, dtml pages like UserOptions?, RecentChanges?, SearchPage? are broken]. I use the DocumentClass?.py int the Zope2.5. And UserOptions? is Ok. The Exception shows like this: (- panjunyong):
Traceback (innermost last): Module ZPublisher.Publish, line 150, in publish_module Module ZPublisher.Publish, line 114, in publish Module Zope, line 171, in zpublisher_exception_hook Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.ZWiki.ZWikiPage, line 210, in __call__ Module Products.ZWiki.ZWikiPage, line 222, in _render Module Products.ZWiki.ZWikiPage, line 398, in render_stxprelinkdtmlhtml Module OFS.DTMLDocument, line 131, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_Let, line 76, in render Module DocumentTemplate.DT_Let, line 75, in render Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: ZopeTime Module <string>, line 2, in f Module DateTime.DateTime, line 1441, in rfc822 NameError: global name 'localzone' is not defined (Also, an error occurred while attempting to render the standard error message.)
SimonMichael, 2002/10/30 20:18 GMT (via web):
Thank you panjunyong. You mention zope 2.6 and 2.5 above, which version are you using exactly ? --Simon
From WikiMailDiscussion::
FlorianKonnertz, 2002/10/30 08:48 GMT (via web):
Hi! I setup mailout, proper ZopeMailHost? and mail_from and got the subscribe link, but after subscribing (either to one page or to the whole wiki) i get the following error, when adding a comment to any page. - Any ideas? --FloK:
Traceback (innermost last): * Module ZPublisher.Publish, line 150, in publish_module * Module ZPublisher.Publish, line 114, in publish * Module Zope, line 171, in zpublisher_exception_hook * Module ZPublisher.Publish, line 98, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.ZWiki.ZWikiPage, line 1937, in comment * Module Products.ZWiki.Mail, line 416, in sendMailToSubscribers * Module Products.ZWiki.Mail, line 498, in sendMailTo * Module Products.ZopeMailHost.ZopeMailHost, line 123, in send * Module Products.ZopeMailHost.ZopeMailHost, line 208, in _mungeHeaders * Module DateTime.DateTime, line 1441, in rfc822 NameError: global name 'localzone' is not defined (Also, an error occurred while attempting to render the standard error message.)
SimonMichael, 2002/10/30 21:29 GMT (via web):
Questions: Florian, which version of zope were you using ? And if one or both of you is running zope 2.6, are you running with the [[[#270 with zope 2.6.0, dtml pages like UserOptions, RecentChanges, SearchPage are broken] with zope 2.6.0, dtml pages like UserOptions?, RecentChanges?, SearchPage? are broken] with zope 2.6.0, dtml pages like UserOptions?, RecentChanges?, SearchPage? are broken] workaround ?
Stephen Figgins, 2002/10/30 22:45 GMT (via web):
I have a similar problem with a fresh install of Zope 2.6 and ZWiki 0.11. Here is my Traceback:
Traceback (innermost last): * Module ZPublisher.Publish, line 150, in publish_module * Module ZPublisher.Publish, line 114, in publish * Module Zope, line 171, in zpublisher_exception_hook * Module ZPublisher.Publish, line 98, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.ZWiki.ZWikiPage, line 198, in __call__ * Module Products.ZWiki.ZWikiPage, line 210, in _render * Module Products.ZWiki.ZWikiPage, line 379, in render_stxprelinkdtmlhtml * Module OFS.DTMLDocument, line 131, in __call__ * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Let, line 76, in render * Module DocumentTemplate.DT_Let, line 75, in render * Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: ZopeTime * Module <string>, line 2, in f * Module DateTime.DateTime, line 1441, in rfc822 NameError
FlorianKonnertz, 2002/10/31 07:10 GMT (via web):
Simon - I get it with Zope-2.6 without [[[#270 with zope 2.6.0, dtml pages like UserOptions, RecentChanges, SearchPage are broken] with zope 2.6.0, dtml pages like UserOptions?, RecentChanges?, SearchPage? are broken] with zope 2.6.0, dtml pages like UserOptions?, RecentChanges?, SearchPage? are broken] workaround, i just upgraded so i don't remember if it was already with 2.5, i guess yes. I will report more later.
David C. Weichert, 2002/10/31 15:21 GMT (via web):
It looks to me like this might be the same bug as described in http://www.zope.org/Members/regebro/datetime_260_fix . Basically you change
localzone
in line 1441 of DateTime?.py to timezone
and restart Zope.
2002/10/31 16:31 GMT (via web):
I put a space before the end of the sentence with the URL (see #347 A space is required at the end of a STX or stand-alone URL).
So this is a Zope 2.6.0 error and not a Zwiki error! Might be wise to include a note in the release notes.
-- PieterB
2002/10/31 16:34 GMT (via web):
See also: http://cvs.zope.org/Zope/lib/python/DateTime/DateTime.py for the latest revision (1.82)
-- PieterB
2002/11/02 08:15 GMT (via web):
I can confirm this is fixed when using a more recent DateTime?.py (I'm using Zope2.6CVS and it works fine for me)
-- PieterB
(property change) --simon, 2003/04/21 19:20 GMT
Title: IssueNo0345 ZOPE start shutdown an error occurred while attempting to render the standard error message
=> IssueNo0345 clicking full/simple/minimal or subscribing gives a Name Error with zope 2.6.0
property change --SimonMichael, 2003/08/02 23:55 GMT reply
Category: don't know => non-zwiki