The number of steps I’ve had to go through to get this working seems to get larger every time I do it. I’ve now got to stage where I’m not 100% sure if a step is needed or not, but what the hell I’m going to do it anyway. To be honest, I’d probably recite incantations backwards over a boiling cauldron if I thought that was going to help.
Here’s a summary of what I’ve had to do:
- Export the content from the old Zope 2.6.4 site
- Create a new CMF site on a Zope 2.9.7 instance
- Run through a load of Zope upgrade routines, including fixing the catalog and adding a load of new folder actions
- Export the folder(s) containing the content you want to migrate
- Create a new Plone site somewhere on a trashable Zope 2.9.7 instance
- Set this up with a theme / policy product
- Import the converted Zope/CMF folders
- Clear and rebuild the Plone site’s portal catalog
- Go to portal_atct / Type migration and click on “Fix” under “Fix portal names”
- Click on “Migrate” under “Type migration”
- This should fix all old CMF documents, links and files
- Now, I’ve got the fix the old CMF Folders. Oh, this is a good one. The only way to get these into the catalog is to go to portal_catalog and go to “Find Objects”. I leave the search fields blank to get absolutely everything into the catalog, even stuff that doesn’t really belong there
- I create a migration script that handles the transfer of old “Portal Folders” to Plone Folders (not at the ATFolders stage yet). It also does some other minor migrations I need to do (e.g. converting ATDocuments to a custom content type)
- Here’s another great one: now make sure your folders don’t contain any objects with the IDs of “language” or “subject”. This causes the migration to fail (I found this out by trial and mainly error). There may be some more IDs that cause this problem, I don’t know. Rename any verboten IDs.
- Go back to portal_catalog and do a Clear and Rebuild
- Go back to portal_atct and re-rerun Migrate Types. My Plone Folders now become ATFolders (woohoo!). Oh hang on, they don’t have any titles!
- I write a script that gives the folders the same titles as their index_html documents. Luckily, by and large the titles of folders and their index pages are the same, so this usually works.
That’s it. Simple and pain-free it’s not. But it is a good advert for not leaving it so long between upgrading your Zope/Plone versions, or being a better programmer.
You can leave a response, or trackback from your own site.
Plone has never claimed any “upgrade path” from a pure Zope/CMF app (non-Plone) to Plone.
It’s impressive that you’ve achieved this — thanks for documenting your work!