Plone formgen error after upgrade to 5.1.4 (5114) from

Module, line 809, in render_area_edit
TypeError: decoding Unicode is not supported

  • Expression: "python:len(unicode(content, 'utf-8'))"
  • Filename: ... Products/Archetypes/skins/archetypes/widgets/
  • Location: (line 33: col 29)
  • Source: content_length python:len(unicode(content, 'utf-8'));
  • Arguments: repeat: {...} (0)
    template: <ImplicitAcquisitionWrapper fg_base_view_p3 at 0x7f139a5050a0>
    modules: <instance - at 0x7f13a488dc68>
    portal_type: formfolder
    here: <ImplicitAcquisitionWrapper form at 0x7f139a506b90>
    js: <list - at 0x7f139dd63248>
    portal: <ImplicitAcquisitionWrapper site at 0x7f139ebeaaf0>
    user: <ImplicitAcquisitionWrapper - at 0x7f139a505960>
    loop: {...} (5)
    nothing: <NoneType - at 0x789160>
    target_language: <NoneType - at 0x789160>
    container: <ImplicitAcquisitionWrapper form at 0x7f139a506b90>
    default: <object - at 0x7f13b0373a10>
    fields: <list - at 0x7f139d1510e0>
    request: <instance - at 0x7f139e839e18>
    wrapped_repeat: <SafeMapping - at 0x7f139a5107e0>
    traverse_subpath: <list - at 0x7f1399b873b0>
    context: <ImplicitAcquisitionWrapper form at 0x7f139a506b90>
    translate: <function translate at 0x7f139a0ec6e0> root: <ImplicitAcquisitionWrapper Zope at 0x7f139ebeacd0>
    options: {...} (2)
    css: <list - at 0x7f139dd637e8>

Anyone have idea where to check?

seems related with

upgrading to Products.PortalTransforms = 3.1.5 must solve your issue.

ImportError: cannot import name IFactoryTool

Keep in mind to include the full error information (especially the traceback) when you report *Errors. You find them (usually) in your error_log object or in the log file (--> var/.../event.log; the ... refers to your instance, usually either instance or client<i>).

The error above is likely an indication of a version problem. Some code (the traceback likely would tell us which one) expects IFactoryTool at a specific place but it is either no longer or not yet there. Things like this can happen during refactorations where code is moved from one module to another one.