Submitted by : simon at: 2003-10-26T21:31:38+00:00 (14 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

If you have editform or backlink DTML methods in your wiki, after upgrading to 0.10 it may/will show "could not render this" instead of the normal header.

Workaround: delete it and use the default edit form (or debug it).


2002/09/12 07:26 GMT (via web):
Hi! - Please what is meant by the default edit form ? - FlorianKonnertz - the one that is provided by zwiki when you don't have a custom editform method in the zope database. It comes from ZWiki/templates/defaults/editform.dtml . - Ok, it's working :-) Thanks! - FloK, 1008


2002/09/16 16:38 GMT (via web):
I get NameError?: global name AUTHENTICATED_USER is not defined

and traceback:

  File /usr/share/Zope-2.5.1/lib/python/ZPublisher/Publish.py, line 150, in publish_module
  File /var/zope/home/shared2/Products/Localizer/__init__.py, line 65, in new_publish
  File /usr/share/Zope-2.5.1/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /usr/share/Zope-2.5.1/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
    (Object: FrontPage)
  File /usr/share/Zope-2.5.1/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /usr/share/Zope-2.5.1/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: editform)
  File /usr/share/Zope-2.5.1/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: editform)
  File /var/zope/home/dev/Products/ZWiki/ZWikiPage.py, line 2414, in editform
    (Object: FrontPage)
  File /usr/share/Zope-2.5.1/lib/python/OFS/DTMLMethod.py, line 127, in __call__
    (Object: editform)
  File /usr/share/Zope-2.5.1/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__
    (Object: editform)
  File /var/zope/home/dev/Products/ZWiki/ZWikiPage.py, line 2341, in standard_wiki_header
    (Object: FrontPage)
  File /usr/share/Zope-2.5.1/lib/python/OFS/DTMLMethod.py, line 127, in __call__
    (Object: standard_wiki_header)
  File /usr/share/Zope-2.5.1/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__
    (Object: standard_wiki_header)
  File /usr/share/Zope-2.5.1/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval
    (Object: AUTHENTICATED_USER.has_permission('View History',this()))
    (Info: this)
  File <string>, line 2, in f
  NameError: (see above)

Regards,

MyroslavOpyr


Simon, 2002/09/23 16:42 GMT (via web):
Thanks Myroslav.. I would have expected AUTHENTICATED_USER to be found in REQUEST which should be passed to your standard_wiki_header when your editform does:
 <dtml-var standard_wiki_header>

and I don't know why upgrading to 0.10 would cause this to break. I'll have to leave this for someone else to figure out.

PS "could not render this" now comes with a traceback in the HTML source which should make debugging easier.

See also the recommendations in UpgradeGuide? & UpgradeGuide?.

SimonMichael, 2003/01/30 21:35 GMT (via web):
closing

Closing this. If it continues to be a problem for people, please re-open and give more details.


comments:

repair --simon, Thu, 10 Aug 2006 03:15:06 -0700 reply
Name: #233 renetta => #233 old wikis may show "could not render this" in places after zwiki upgrade Category: user-pagehierarchy => admin-installing Status: open => closed