2013-10-07 92 views
1

我想的Plone 3.3.6遷移到較新的Plone 4.0.7版本(然後到4.3.x版),但我在多個錯誤然:Plone的升級3.3.6至4.0.7的Plone文件錯誤

Full traceback

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」另一個文件拋出一個錯誤,等等...... 我希望你理解我,有人可以幫我

感謝

回答

2

需要嘗試的內容:遷移前使用collective.catalogcleanup從您的目錄中刪除損壞的引用。它很容易使用:添加到您的構建,重新啓動網站,在您的瀏覽器中轉到/@@collective-catalogcleanup?dry_run=false

由於collective.catalogcleanup的文檔狀態:

我們的目標是在升級過程中擺脫過時的大腦,否則會造成問題,例如對Plone的4