升级4.0.10到Plone 5(缺少IRegistry?)

时间:2015-12-06 01:44:59

标签: plone plone-5.x

我试图将Plone 4.0.10网站升级到5.0。我经历了升级到4.3.6并且有点痛苦地让它在那里工作。在我的Data.fs我有两个Plone站点:有问题的站点,另一个除了默认内容(新闻,事件,用户)之外的其他站点。当我将Data.fs和blob从4.3.6移动到Plone 5实例时,"空"网站升级很好。但是,如果我甚至尝试转到生产站点的ZMI根目录,或者加载该站点,我会得到这个:

    2015-12-05 17:19:24 ERROR Zope.SiteErrorLog 1449364764.10.146181213601 http://localhost:8080/mysite
    Traceback (innermost last):
      Module ZPublisher.Publish, line 127, in publish
      Module ZPublisher.BaseRequest, line 444, in traverse
      Module ZPublisher.BeforeTraverse, line 97, in __call__
      Module Products.CMFCore.PortalObject, line 75, in __before_publishing_traverse__
      Module zope.event, line 31, in notify
      Module zope.component.event, line 24, in dispatch
      Module zope.component._api, line 136, in subscribers
      Module zope.component.registry, line 321, in subscribers
      Module zope.interface.adapter, line 585, in subscribers
      Module zope.component.event, line 32, in objectEventNotify
      Module zope.component._api, line 136, in subscribers
      Module zope.component.registry, line 321, in subscribers
      Module zope.interface.adapter, line 585, in subscribers
      Module plone.app.theming.plugins.hooks, line 33, in onRequest
      Module plone.app.theming.policy, line 91, in isThemeEnabled
    AttributeError: 'NoneType' object has no attribute 'enabled'

我不知道为什么plone.app.theming参与,因为旧网站没有Diazo主题,我只是加载ZMI。此外,问题似乎是没有IRegistry

plone.app.theming.policy.getSettings

    def getSettings(self):
    """Settings for current theme."""
    registry = queryUtility(IRegistry)

此时registryNonesettings中为plone.app.theming.policy.isThemeEnabled

有关如何进行的任何建议?

1 个答案:

答案 0 :(得分:4)

plone.app.theming必须安装在Plone 4中。在你的Plone 4.3.6站点中包含p.a.t并重新升级。 (How to upgrade sites to Plone 5, 24:15