I’m migrating content from an older 5.6.x site to the latest V9. I’m getting a bunch of issues and have troubleshot some of them myself, taking quite a few hours. But now I’ve hit a wall - when importing a batch, the matching of attributes and block types falls apart. I’ve detailed this in an issue on Github, but it’s a bit quiet there, so I’m hoping someone in the form might have had the same issue and could help me solve this.
Link to Github: Import batch refusing to match block types, attributes, etc. · Issue #20 · concretecms/migration_tool · GitHub
To save time, I’ve copied the content of the Github issue below…
–
I’ve followed the steps in Andrew’s video on using the Migration Tool. However, I’m experiencing significant bugs that I’ve spent hours trying to troubleshoot and making little progress. I’ve tested on clean Concrete installations running PHP 7.4, 8.0 and 8.1 to check if the PHP version is the cause of the issue, and all have the same results.
I’ve tested the tool on a small batch - just 1 page with a handful of attributes.
The current hurdle is two-fold:
- The migration tool appears to not automatically match existing attributes when it actually does. Here’s the UI:
Monosnap
Monosnap
However, what is happening in the database (in the “MigrationContentMapperTargetItems” table) is actually correct. It’s matching the “source_item_identifier” correctly.
Then when I choose to “map content”, none of those automatic mappings appear.
Screenshot: Monosnap
It seems the mappings are correct in the database, but not being loaded (on “map content”) or displayed correctly (on “import content”, instead a list of warnings and errors). I’ve tried running the “rescan batch”, and although that appears to complete successfully, there’s no change in the mappings or warnings/errors. - Manual mappings do not save either. Regardless of the automatic mapping not working, when I try the manual option it still does not work. Same as the previous issue - the database records are there in “MigrationContentMapperTargetItems”. However, after saving there’s no change. So I run “rescan batch” and still there’s no change. All the same warnings and errors appear. If I view the “map content” page again, all my previous changes are not displayed.
Since the underlying database seems to be correct, I tried exporting the batch at the end of the process and the page is created (in the correct location), although none of the content or attributes are created. So it’s a dud.
I’ve also tried uninstalling the Migration Tool package and reinstalling with a clean slate (double checking the db tables are no longer there after uninstalling) but makes no difference.