One section of the site setup throws errors

Hello,
I am using Plone 6.0.5 Classic.

I've had the site up for months and all worked well until now.

Here is what i did not necessarily in this order:

  1. went to Zope and created a worflow
  2. create a Group and added 3 users
  3. updated the user creation form to add a field and unintentionally made it required
  4. After completing the WF above, went to Site Setup/Content settings and got the error below.

Here is what i did to try to fix the problem:

  1. i removed the Group created above (the error message had reference to 'group'
  2. i updated the users on site to include the new field in the user creation form (it's a test site, so only 4 users)
  3. i looked at undo in Zope, but didn't see anything obvious. I'd rather not mess with that.

That's all I know how to do. any suggestions? Thanks

Here is the full error message:

Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 181, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 390, in publish_module
Module ZPublisher.WSGIPublisher, line 285, in publish
Module ZPublisher.mapply, line 85, in mapply
Module ZPublisher.WSGIPublisher, line 68, in call_object
Module Products.CMFPlone.controlpanel.browser.types, line 262, in call
Module Products.Five.browser.pagetemplatefile, line 126, in call
Module Products.Five.browser.pagetemplatefile, line 58, in call
Module zope.pagetemplate.pagetemplate, line 134, in pt_render
Module Products.PageTemplates.engine, line 365, in call
Module z3c.pt.pagetemplate, line 176, in render
Module chameleon.zpt.template, line 298, in render
Module chameleon.template, line 214, in render
Module chameleon.utils, line 20, in raise_with_traceback
Module chameleon.template, line 190, in render
Module 0a5a354f6265982beeab38966cc0cadb, line 1955, in render
Module c4ae6a1db9569149b85634e8ec026577, line 913, in render_master
Module 4b33ef6a96f757276913c10b3dd4b720, line 925, in render_master
Module c4ae6a1db9569149b85634e8ec026577, line 888, in __fill_content
Module 4b33ef6a96f757276913c10b3dd4b720, line 1581, in render_content
Module c4ae6a1db9569149b85634e8ec026577, line 874, in __fill_main
Module 0a5a354f6265982beeab38966cc0cadb, line 982, in __fill_prefs_configlet_main
Module zope.tales.expressions, line 250, in call
Module Products.PageTemplates.Expressions, line 221, in _eval
Module Products.PageTemplates.Expressions, line 152, in render
Module plone.memoize.instance, line 52, in memogetter
Module Products.CMFPlone.controlpanel.browser.types, line 366, in current_workflow
AttributeError: 'NoneType' object has no attribute 'title'

  • Expression: "provider:plone.abovecontent"
  • Filename: ... ges/Products/CMFPlone/browser/templates/main_template.pt
  • Location: (line 75: col 59)
  • Source: ... :content="structure provider:plone.abovecontent" />
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Expression: "context/@@main_template/macros/master"
  • Filename: ... ducts/CMFPlone/controlpanel/browser/prefsmaintemplate.pt
  • Location: (line 2: col 30)
  • Source: ... tal:use-macro="context/@@main_template/macros/master">
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Expression: "context/prefs_main_template/macros/master"
  • Filename: ... packages/Products/CMFPlone/controlpanel/browser/types.pt
  • Location: (line 6: col 23)
  • Source: ... l:use-macro="context/prefs_main_template/macros/master"
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Arguments: template: <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x7fe0b93ab7d0>
    options: {}
    args: ()
    nothing: None
    modules: <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter object at 0x7fe0bcc82d50>
    request: <WSGIRequest, URL=http://184.168.30.89:8080/docentims/@@content-controlpanel>
    view: <Products.Five.browser.metaconfigure.TypesControlPanel object at 0x7fe0af36b310>
    context: <PloneSite at /docentims>
    views: <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x7fe0b4472d90>
    here: <PloneSite at /docentims>
    container: <PloneSite at /docentims>
    root:
    traverse_subpath:
    user: <PloneUser 'wglover@docentims.com'>
    default:
    repeat: <Products.PageTemplates.engine.RepeatDictWrapper object at 0x7fe0b4e7f520>
    loop: {'group': <Products.PageTemplates.engine.RepeatItem object at 0x7fe0afc95910>, 'configlet': <Products.PageTemplates.engine.RepeatItem object at 0x7fe0ae0d58d0>, 'selectable': <Products.PageTemplates.engine.RepeatItem object at 0x7fe0ade07d50>}
    target_language: None
    translate: <function BaseTemplate.render..translate at 0x7fe0ad80f4c0>
    macroname: 'master'
    attrs: {}

Wayne Glover via Plone Community wrote at 2023-6-22 02:55 +0000:

...
Here is the full error message:

Traceback (innermost last):
....
Module Products.PageTemplates.Expressions, line 152, in render
Module plone.memoize.instance, line 52, in memogetter
Module Products.CMFPlone.controlpanel.browser.types, line 366, in current_workflow
AttributeError: 'NoneType' object has no attribute 'title'

The location of the exception (current_workflow) indicates that something
might be wrong with the workflow.

Look at the code near line 366 of
Products.CMFPlone.controlpanel.browser.types to check where the None might have been come from.

Note: you might be interested in the product Products.PDBDebugMode.
If installed and your Plone runs in the foreground (and in debug mode which is
the default for foreground execution), then exceptions will
enter the Python debugger; this allows you the inspect the code
and state near the exception.

Try to look at ZMI -> portal_workflow. Seems that the default workflow is None. I would also open an issue in GitHub - plone/Products.CMFPlone: The core of the Plone content management system

Hi @yurj and @dieter
Thanks to both of you. Knowing to look for a missing or deleted WF, I went into Undo and found the right action to undo. All is good.

Thanks