1

我尝试将 plone 3.3.6 迁移到更新的 plone 4.0.7 版本(然后迁移到 4.3.x),但我遇到了多个错误:

完整回溯

2013-10-07 13:51:33 INFO ProgressHandler Process started (1842 objects to go)
2013-10-07 13:51:33 ERROR plone.app.upgrade Upgrade aborted. Error:
Traceback (most recent call last):
  File "/Users/iie/Projects/plone4.0/rwa/eggs/Plone-4.0.7-py2.6.egg/Products/CMFPlone/MigrationTool.py", line 175, in upgrade
    step['step'].doStep(setup)
  File "/Users/iie/Projects/plone4.0/rwa/eggs/Products.GenericSetup-1.6.3-py2.6.egg/Products/GenericSetup/upgrade.py", line 142, in doStep
    self.handler(tool)
  File "/Users/iie/Projects/plone4.0/rwa/eggs/plone.app.upgrade-1.0.7-py2.6.egg/plone/app/upgrade/v40/betas.py", line 117, in updateIconMetadata
    obj = brain.getObject()
  File "/Users/iie/Projects/plone4.0/rwa/eggs/Zope2-2.12.18-py2.6-macosx-10.7-x86_64.egg/Products/ZCatalog/CatalogBrains.py", line 92, in getObject
    target = parent.restrictedTraverse(path[-1])
  File "/Users/iie/Projects/plone4.0/rwa/eggs/Zope2-2.12.18-py2.6-macosx-10.7-x86_64.egg/OFS/Traversable.py", line 310, in restrictedTraverse
    return self.unrestrictedTraverse(path, default, restricted=True)
  File "/Users/iie/Projects/plone4.0/rwa/eggs/Zope2-2.12.18-py2.6-macosx-10.7-x86_64.egg/OFS/Traversable.py", line 278, in unrestrictedTraverse
    raise e
AttributeError: pa_20120810.pdf

如果我删除“pa_20120810.pdf”另一个文件会引发错误,依此类推......我希望你理解我,有人可以帮助我

谢谢

4

1 回答 1

2

尝试一下:在迁移之前使用collective.catalogcleanup从目录中删除损坏的引用。它很容易使用:添加到您的构建中,重新启动站点,进入/@@collective-catalogcleanup?dry_run=false浏览器。

正如collective.catalogcleanup 的文档所述:

目标是摆脱过时的大脑,否则可能会导致问题,例如在升级到 Plone 4 期间。

于 2013-10-07T19:48:16.410 回答