After import my Content via collective.exportimport all looks fine in the new Plone 6.2 Site.
But if i browse through the ZMI in the Zope Backend then i get a rendering error in some of my folderish objects:
2026-02-06 12:01:10,171 ERROR [Zope.SiteErrorLog:35][waitress-3] TypeError: http://x.x.x.x:8081/plone/path/to/department/manage_main
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 181, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 390, in publish_module
Module ZPublisher.WSGIPublisher, line 284, in publish
Module ZPublisher.mapply, line 98, in mapply
Module ZPublisher.WSGIPublisher, line 68, in call_object
Module Shared.DC.Scripts.Bindings, line 335, in __call__
Module Shared.DC.Scripts.Bindings, line 372, in _bindAndExec
Module App.special_dtml, line 225, in _exec
Module DocumentTemplate._DocumentTemplate, line 144, in render_blocks
Module DocumentTemplate._DocumentTemplate, line 166, in render_blocks_
Module DocumentTemplate._DocumentTemplate, line 374, in __getitem__
Module DocumentTemplate._DocumentTemplate, line 392, in getitem
Module Shared.DC.Scripts.Bindings, line 349, in __render_with_namespace__
Module Shared.DC.Scripts.Bindings, line 372, in _bindAndExec
Module App.special_dtml, line 225, in _exec
Module DocumentTemplate._DocumentTemplate, line 144, in render_blocks
Module DocumentTemplate._DocumentTemplate, line 166, in render_blocks_
Module DocumentTemplate._DocumentTemplate, line 374, in __getitem__
Module DocumentTemplate._DocumentTemplate, line 392, in getitem
Module Shared.DC.Scripts.Bindings, line 349, in __render_with_namespace__
Module Shared.DC.Scripts.Bindings, line 372, in _bindAndExec
Module App.special_dtml, line 225, in _exec
Module DocumentTemplate._DocumentTemplate, line 144, in render_blocks
Module DocumentTemplate._DocumentTemplate, line 236, in render_blocks_
Module DocumentTemplate._DocumentTemplate, line 245, in render_blocks_
Module DocumentTemplate.DT_Let, line 85, in render
Module DocumentTemplate._DocumentTemplate, line 144, in render_blocks
Module DocumentTemplate._DocumentTemplate, line 168, in render_blocks_
Module DocumentTemplate.DT_Util, line 215, in eval
- __traceback_info__: authuser
Module <string>, line 1, in <module>
TypeError: BrowserDefaultMixin.__call__() takes 1 positional argument but 2 were given
If i wrap the Line 215 in DocumentTemplate/src/DocumentTemplate/DT_Util.py at 4cb3dd6aca26c5772b108b37308f743c0f436d04 · zopefoundation/DocumentTemplate · GitHub
with a try/except block and return an empty String, then the error is gone.
But this is not what i want. i would like to know which View is called with to much arguments
BrowserDefaultMixin.__call__() takes 1 positional argument but 2 were given
How can i do this?
Currently i run the import in a Plone 6.1 Site. I will check if the error happen also under Zope 5.
Update: it happen also in Zope 5 with Plone 6.1.3. I can reproduce it on the classic ui demo site.
But I have found the cause. However, I am not sure whether it is relevant to safety.