由于ZopeXMLConfiguratinError,Plone无法启动

时间:2017-03-08 23:34:28

标签: plone product buildout application-restart

我刚刚为我的Plone5 buildout添加了一个新产品,它会抛出下面的错误,现在即使我注释掉所有的附加组件,我仍然会收到此错误,并且Plone将无法启动。

zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/opt/plone/zeocluster/parts/client1/etc/site.zcml", line 16.2-16.23
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/Products.ATContentTypes-2.2.12-py2.7.egg/Products/ATContentTypes/configure.zcml", line 18.2-18.44
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/plone.app.collection-1.1.6-py2.7.egg/plone/app/collection/configure.zcml", line 9.2-9.45
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/plone.app.querystring-1.3.15-py2.7.egg/plone/app/querystring/configure.zcml", line 11.2-11.42
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/plone.app.registry-1.3.12-py2.7.egg/plone/app/registry/configure.zcml", line 12.4-12.34
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/plone.app.registry-1.3.12-py2.7.egg/plone/app/registry/browser/configure.zcml", line 6.4-6.43
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/plone.app.z3cform-1.2.1-py2.7.egg/plone/app/z3cform/configure.zcml", line 10.2-10.41
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/plone.app.widgets-2.0.5-py2.7.egg/plone/app/widgets/configure.zcml", line 12.2-12.41
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/Products.CMFPlone-5.0.5-py2.7.egg/Products/CMFPlone/configure.zcml", line 108.4-112.10
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/quintagroup.slidertemplates-1.5-py2.7.egg/quintagroup/slidertemplates/configure.zcml", line 7.2-7.32
    ZopeXMLConfigurationError: File "/opt/plone/buildout-cache/eggs/quintagroup.slidertemplates-1.5-py2.7.egg/quintagroup/slidertemplates/browser/configure.zcml", line 24.2-27.6
    KeyError: 'target_collection'

1 个答案:

答案 0 :(得分:0)

我在没有任何附件的情况下重新运行buildout,然后重新运行几次,一次启用一个包。不确定如何或为什么,但现在它的工作原理 - 即使使用了slidertemplates packge ...仍然是一个黑盒子,因为它首先抛出错误的原因。