I'm seeing a "TransformError" after an upgrade to Plone 5.1.4.
I had a similar problem a good couple months ago. At the time the issue seemed to be related to the version of lxml. This time the lxml version is fine. I'm still trying to work out the issue.
I'm pretty sure it has something to do with plone.app.textfield's output_relative_to() function.
Traceback
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Products.Five.browser.metaconfigure, line 485, in __call__
Module Products.Five.browser.pagetemplatefile, line 125, in __call__
Module Products.Five.browser.pagetemplatefile, line 59, in __call__
Module zope.pagetemplate.pagetemplate, line 137, in pt_render
Module five.pt.engine, line 98, in __call__
Module z3c.pt.pagetemplate, line 163, in render
Module chameleon.zpt.template, line 261, in render
Module chameleon.template, line 191, in render
Module chameleon.template, line 171, in render
Module 6469ff6e372688ee93f391ccdc9417b3.py, line 246, in render
Module a468d21c2e8b73537d024f4c5e5e3c0d.py, line 1223, in render_master
Module a468d21c2e8b73537d024f4c5e5e3c0d.py, line 420, in render_content
Module 6469ff6e372688ee93f391ccdc9417b3.py, line 234, in __fill_content_core
Module 6469ff6e372688ee93f391ccdc9417b3.py, line 137, in render_content_core
Module plone.app.textfield.value, line 110, in output_relative_to
Module plone.app.textfield.transform, line 69, in __call__
TransformError: Error during transformation
- Expression: "python:context.text.output_relative_to(view.context)"
- Filename: ... egg/plone/app/contenttypes/browser/templates/newsitem.pt
- Location: (line 15: col 29)
- Source: ... ucture python:context.text.output_relative_to(view.context)"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Arguments: repeat: {...} (0)
template: <ViewPageTemplateFile - at 0x7f4c16b86e10>
views: <ViewMapper - at 0x7f4c1587eb90>
modules: <instance - at 0x7f4c1eafcab8>
args: <tuple - at 0x7f4c29858050>
here: <ImplicitAcquisitionWrapper rules-as-commodities at 0x7f4c192f8cd0>
user: <ImplicitAcquisitionWrapper - at 0x7f4c1909dc30>
nothing: <NoneType - at 0x7ba070>
container: <ImplicitAcquisitionWrapper rules-as-commodities at 0x7f4c192f8cd0>
request: <instance - at 0x7f4c1896bd40>
wrapped_repeat: <SafeMapping - at 0x7f4c15863ec0>
traverse_subpath: <list - at 0x7f4c18a0ff80>
default: <object - at 0x7f4c2982ea90>
loop: {...} (0)
context: <ImplicitAcquisitionWrapper rules-as-commodities at 0x7f4c192f8cd0>
view: <SimpleViewClass from /home/ubuntu/buildout-cache/eggs/plone.app.contenttypes-1.4.15-py2.7.egg/plone/app/contenttypes/browser/templates/newsitem.pt newsitem_view at 0x7f4c1587e650>
translate: <function translate at 0x7f4c160e7410>
root: <ImplicitAcquisitionWrapper Zope at 0x7f4c19268870>
options: {...} (0)
target_language: <NoneType - at 0x7ba070>