Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.7.1 error with plone 5.2.1 #97

Closed
om1221 opened this issue Feb 18, 2020 · 1 comment · Fixed by #98
Closed

1.7.1 error with plone 5.2.1 #97

om1221 opened this issue Feb 18, 2020 · 1 comment · Fixed by #98

Comments

@om1221
Copy link

om1221 commented Feb 18, 2020

After enable pas plugins and click LDAP/ AD Support,then get error:

Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 156, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 338, in publish_module
Module ZPublisher.WSGIPublisher, line 256, in publish
Module ZPublisher.mapply, line 85, in mapply
Module ZPublisher.WSGIPublisher, line 62, in call_object
Module zope.browserpage.simpleviewclass, line 41, in call
Module Products.Five.browser.pagetemplatefile, line 126, in call
Module Products.Five.browser.pagetemplatefile, line 61, in call
Module zope.pagetemplate.pagetemplate, line 135, in pt_render
Module Products.PageTemplates.engine, line 88, in call
Module z3c.pt.pagetemplate, line 173, in render
Module chameleon.zpt.template, line 306, in render
Module chameleon.template, line 209, in render
Module chameleon.utils, line 75, in raise_with_traceback
Module chameleon.template, line 187, in render
Module bacd4a3c9a5cafd5968f6af005d2f6f8.py, line 356, in render
Module 900c1aedb3a6594f7c67be74ecb9a73a.py, line 286, in render_master
Module 8ea451be501fb4f586dd8f5386dc65e5.py, line 687, in render_master
Module 900c1aedb3a6594f7c67be74ecb9a73a.py, line 266, in __fill_content
Module 8ea451be501fb4f586dd8f5386dc65e5.py, line 1273, in render_content
Module 900c1aedb3a6594f7c67be74ecb9a73a.py, line 257, in __fill_main
Module bacd4a3c9a5cafd5968f6af005d2f6f8.py, line 335, in __fill_prefs_configlet_main
Module pas.plugins.ldap.properties, line 85, in form
Module yafowil.yaml.parser, line 23, in parse_from_YAML
Module yafowil.yaml.parser, line 59, in call
Module yafowil.yaml.parser, line 147, in create_tree
Module yafowil.yaml.parser, line 145, in create_children
Module yafowil.yaml.parser, line 144, in create_children
Module yafowil.yaml.parser, line 122, in call_factory
Module yafowil.base, line 706, in call
Module yafowil.widget.array.widget, line 72, in array_builder
Module yafowil.base, line 684, in call
KeyError: 'table'

  • Expression: "provider:plone.abovecontent"
  • Filename: ... egg/Products/CMFPlone/browser/templates/main_template.pt
  • Location: (line 67: col 59)
  • Source: ...
    ^
  • Expression: "context/@@main_template/macros/master"
  • Filename: ... oducts/CMFPlone/skins/plone_prefs/prefs_main_template.pt
  • Location: (line 2: col 30)
  • Source: ... tal:use-macro="context/@@main_template/macros/master">
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Expression: "context/prefs_main_template/macros/master"
  • Filename: ... 6.egg/pas/plugins/ldap/plonecontrolpanel/controlpanel.pt
  • Location: (line 6: col 23)
  • Source: ... l:use-macro="context/prefs_main_template/macros/master"
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Arguments: template: <ViewPageTemplateFile - at 0x7fa9edbb9668>
    options: {...} (0)
    args: <tuple - at 0x7faa03db3048>
    nothing: <NoneType - at 0x9d4380>
    modules: <_SecureModuleImporter - at 0x7fa9fb3e6978>
    request: <WSGIRequest - at 0x7fa9ed67ddd8>
    view: <SimpleViewClass from /opt/plone/buildout-cache/eggs/pas.plugins.ldap-1.7.1-py3.6.egg/pas/plugins/ldap/plonecontrolpanel/controlpanel.pt plone_ldapcontrolpanel at 0x7fa9ee0bf358>
    context: <ImplicitAcquisitionWrapper test at 0x7fa9f09693f0>
    views: <ViewMapper - at 0x7fa9ed641dd8>
    here: <ImplicitAcquisitionWrapper test at 0x7fa9f09693f0>
    container: <ImplicitAcquisitionWrapper test at 0x7fa9f09693f0>
    root: <ImplicitAcquisitionWrapper at 0x7faa0034b240>
    traverse_subpath: <list - at 0x7fa9fc26e348>
    user: <ImplicitAcquisitionWrapper - at 0x7fa9ef19bf30>
    default: <object - at 0x7faa02b7fad0>
    repeat: {...} (0)
    loop: {...} (0)
    wrapped_repeat: <SafeMapping - at 0x7fa9edebdcc8>
    target_language: <NoneType - at 0x9d4380>
    translate: <function translate at 0x7fa9f1993b70>
    macroname: master
@om1221
Copy link
Author

om1221 commented Feb 18, 2020

downgrade back to 1.7.0 test ok

al45tair added a commit to al45tair/pas.plugins.ldap that referenced this issue Feb 20, 2020
Without doing this, various built-in widgets aren't registered, which
results in mysterious KeyError messages when people try to configure
LDAP in Plone.

Fixes collective#97 and collective#92.
@rnixx rnixx closed this as completed in #98 Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant