In one of our Plone installations running 4.3.12, the Search control panel is unavailable.
When we try to access it, we get the "Something went wrong" screen, behind which is this error message:
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 zope.formlib.form, line 868, in __call__
Module five.formlib.formbase, line 50, in update
Module zope.formlib.form, line 831, in update
Module plone.fieldsets.form, line 21, in setUpWidgets
Module zope.formlib.form, line 417, in setUpEditWidgets
Module zope.schema._bootstrapfields, line 215, in get
Module plone.app.controlpanel.search, line 116, in sort_on
AttributeError: sort_on
My first impulse is to "work around" this by loading the search control panel and setting the field from Python, but loading the debugger, I fail to retrieve the search control panel for precisely the same reason:
>>> registry = getUtility(IRegistry, context=ps)
>>> search_settings = registry.forInterface(ISearchSchema, prefix='plone')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/dsn/dsn.dk/eggs/plone.registry-1.0.5-py2.7.egg/plone/registry/registry.py", line 78, in forInterface
name
KeyError: 'Interface `plone.app.controlpanel.search.ISearchSchema` defines a field `sort_on`, for which there is no record.'
I'm guessing the upgrade to 4.3.12 may have failed without us noticing, but are there any suggestions as how I may remedy this now that apparently it wasn't possible to fix "behind the scenes" like I tried to?
And might an upgrade to 4.3.14 (which we should do anyway before too long) solve the problem?
Thanks in advance for any response.