I am running into an error when trying to create a new lab contact. I haven’t seen this before when trying to create a new user. I have followed the traceback the best I can but I still can’t find anything.
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.CMFPlone.FactoryTool, line 478, in call
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Products.CMFFormController.FSControllerPageTemplate, line 91, in call
Module Products.CMFFormController.BaseControllerPageTemplate, line 29, in _call
Module Products.CMFFormController.ControllerBase, line 232, in getNext
Module Products.CMFFormController.Actions.TraverseTo, line 38, in call
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Products.CMFFormController.FSControllerPythonScript, line 105, in call
Module Products.CMFFormController.Script, line 145, in call
Module Products.CMFCore.FSPythonScript, line 127, in call
Module Shared.DC.Scripts.Bindings, line 322, in call
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 344, in _exec
Module script, line 1, in content_edit
- <FSControllerPythonScript at /senaite/bika_setup/bika_labcontacts/portal_factory/LabContact/labcontact.2021-10-13.5161198429/content_edit>
- Line 1
Module Products.CMFCore.FSPythonScript, line 127, in call
Module Shared.DC.Scripts.Bindings, line 322, in call
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 344, in _exec
Module script, line 12, in content_edit_impl - <FSPythonScript at /senaite/bika_setup/bika_labcontacts/portal_factory/LabContact/labcontact.2021-10-13.5161198429/content_edit_impl>
- Line 12
Module Products.Archetypes.BaseObject, line 636, in processForm
Module bika.lims.content.labcontact, line 109, in _renameAfterCreation
Module bika.lims.idserver, line 534, in renameAfterCreation
Module bika.lims.idserver, line 475, in generateUniqueId
Module bika.lims.idserver, line 189, in get_config
KeyError: ‘portal_type’