Problem/Motivation
Migration appears to be broken in 1.0-rc9.
Steps to reproduce
Install 1.0-rc9 and attempt migration via Drush on Drupal 8.9.13.
Expected: usable migration
Result:
Cannot use string offset as an array in web/modules/contrib/inline_entity_form/src/MigrationHelper.php on line 53 #0 web/modules/contrib/inline_entity_form/inline_entity_form.module(465): Drupal\inline_entity_form\MigrationHelper->alterPlugins(Array)
Attempt to run drush migrate-upgrade --configure-only or drush migrate-import fail with above error.
Unsure of solution. Meantime have rolled back to rc8 via composer.
| Comment | File | Size | Author |
|---|
Issue fork inline_entity_form-3208818
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
geek-merlinComment #4
aram.gevorgyan commentedI also have this issue after upgrading module.
Comment #5
volker23 commentedSame here. Drupal 9.2.9, 8.x-1.0-rc9
Comment #6
3cwebdev commentedSame issue as above. Had to uninstall inline_entity_form to allow migration to work. The migration's content type didn't use any inline_entity_form displays either so the issue is outside of that.
Comment #7
junaidpvI am using this patch to work around the error.
Comment #8
xurizaemonTesting this alongside #3226253: hook_migration_plugins_alter is instantiating all source plugins and it seems to fix the fatal error we were seeing on
drush migrate:status.Comment #9
geek-merlinComment #10
sjhuskey commentedThe patch in #7 worked for me on Drupal 9.4.1. Thank you @junaidpv!
Comment #11
geek-merlinToo many migration issues, many of which look overlapping or duplicate.
Postponing on parent issue.
Comment #12
anybodyClosed #3208631: d7_entity_location_field_widget.yml syntax breaks migrations with inline_entity_form as duplicate of this issue, as this one already has a patch and is more detailed on the same point.
Comment #13
anybodyBased on the parent issue, I can now clearly say, that this is a separate issue and fixes a clear bug where an array is expected, but might not be one or not even existing in specific migrations.
Patch #7 fixes the issue. I created a MR and changed the implementation a bit:
$additionvariable in the lines above.Tested this successfully, so this is ready for review and NOT related to any of the other migration issues / siblings!
Comment #15
grevil commentedLGTM! The described changes make sense to me!
Comment #16
geek-merlinThorough cleanup work, much appreciated! Also MR is appreciated a lot.
MR is "not currently mergeable" though.
Comment #17
grevil commentedDone Rebasing! Should be ready to commit! Please review. :)
Comment #18
grevil commented@Anybody yes, the changes were not part of the patch but part of your refactoring you mentioned in #13. ;)
Comment #19
anybodySorry @Grevil, you are right, as it seems this change already came in with my MR... while I don't really know how that happened. Crazy. Anyway I don't think that change is correct. I reverted that line now. Please review again.
Comment #20
anybodyThe 2 failing tests seem BTW unrelated to me:
Comment #21
grevil commentedTests are green now and changes make sense!
Currently testing the diff for a custom d7 to d9 Migration. :)
Comment #22
geek-merlin> Currently testing the diff for a custom d7 to d9 Migration. :)
So i wait for feedback on this.
Comment #23
grevil commentedSorry for not replying earlier! Works like a charm. :)
Comment #25
geek-merlin🎵 Another one bites the dust...!🎵
Thanks to all, especially Grevil and Anybody for finally nailing this.