Problem/Motivation
Per https://www.drupal.org/project/multiupload_filefield_widget this plugin has been added to D8, but the migration is failing and cause a broken site.
The "file_mfw" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\WidgetPluginManager are: comment_default, datetime_datelist, datetime_default, file_generic, image_image, link_default, path, redirect_source, text_textarea, text_textarea_with_summary, text_textfield, datetime_timestamp, boolean_checkbox, email_default, entity_reference_autocomplete_tags, entity_reference_autocomplete, language_select, number, options_buttons, options_select, string_textarea, string_textfield, uri (core\lib\Drupal\Component\Plugin\Discovery\DiscoveryTrait.php:53)
Per https://www.drupal.org/project/multiupload_imagefield_widget this plugin has also been added to D8, but the migration is failing and cause a broken site.
The "image_miw" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\WidgetPluginManager are: comment_default, datetime_datelist, datetime_default, file_generic, image_image, link_default, path, redirect_source, text_textarea, text_textarea_with_summary, text_textfield, datetime_timestamp, boolean_checkbox, email_default, entity_reference_autocomplete_tags, entity_reference_autocomplete, language_select, number, options_buttons, options_select, string_textarea, string_textfield, uri (core\lib\Drupal\Component\Plugin\Discovery\DiscoveryTrait.php:53)
Are there any patches to solve this migration bugs or ongoing tasks to fix this bugs?
Proposed resolution
Write a migration :-)
Remaining tasks
Review
Commit
| Comment | File | Size | Author |
|---|---|---|---|
| #28 | 3051252-28.patch | 28.9 KB | quietone |
| #28 | interdiff-27-28.txt | 2.55 KB | quietone |
| #27 | 3051252-27.patch | 28.01 KB | quietone |
| #27 | interdiff-26-27.txt | 577 bytes | quietone |
| #26 | 3051252-26.patch | 27.96 KB | quietone |
Comments
Comment #2
hass commentedComment #3
nchase commentedSame problem here:
The "file_mfw" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\WidgetPluginManager are: comment_default, datetime_default, datetime_datelist, entity_reference_revisions_autocomplete, field_collection_embed, file_generic, image_image, link_default, oembed_textfield, metatag_firehose, panelizer, path, redirect_source, text_textarea_with_summary, text_textarea, text_textfield, entity_reference_paragraphs, paragraphs, datetime_timestamp, uri, number, boolean_checkbox, email_default, language_select, string_textarea, entity_reference_autocomplete_tags, options_buttons, string_textfield, entity_reference_autocomplete, options_select (/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php:53)Comment #6
nojj commentedI have the same problem trying to upgrade to Drupal 9.0.7. is there any solution ?
Comment #7
quietone commentedMaybe something like this.
This will need tests and it would help greatly if someone uploaded a file with a database row for each plugin from field_config and field_config_instance. That would be 4 rows in total, then I can write the tests.
Comment #8
quietone commentedComment #10
quietone commentedStarting over. This adds the field plugin, adds the fields to the d7 fixture and add tests.
Comment #12
quietone commentedForgot to add the field data tables to the fixture.
Comment #13
nojj commentedis this patch only for D9.2 ?
Comment #14
quietone commented@nojj, yes, it is. Bugs are fixed on the latest development version and then considered for backporting to earlier versions.
This is actually a task as are all the migrations for legacy functionality that is now in Drupal 8 core. And adding to the relevant Meta.
Comment #15
wim leersWoah, nice catch!
This patch looks great to me.
🤔 These changes I don't quite understand. I do understand the
image_miwandfile_miwadditions. I do not understand any of the other changes.Comment #16
quietone commented15.1 I have not investigated but the order of the fields as tested in FieldDiscoveryTest changes when field plugins are added.
Yes, I mucked up the widget maps. This should be better.
edit: s/investigate/investigated
Comment #17
wim leersThat looks better! 👍
P.S.: Would appreciate your guidance on #3188284: [PP-3] Migration support 😊
Comment #18
quietone commentedRetesting
Comment #19
nojj commentedhow can I solve this problem in Drupal 9.1.2 ?
Comment #20
quietone commented@nojj, Use the patch in #16, it applies to 9.1.2.
Comment #21
quietone commentedNeeded a reroll
Comment #22
quietone commentedComment #23
quietone commentedComment #24
quietone commentedYet another reroll.
Comment #25
matroskeen@quietone asked me to review this issue as a review swap, so here we go:
1) I had D7 project running so it took me a relatively short time to install those two modules and configure field widgets for Image and File fields;
2) I exported a database dump and ran the Upgrade (provide by Migrate Drupal UI) and hit the same issues reported in the issue summary;
3) After applying the patch, these errors were gone and the migrated fields had Image and File widgets 🙌
I have to mention that in both cases (before and after the patch), the Upgrade summary page displayed the following warnings:

Should we add some records to
migrate_drupal.migrate_drupal.ymlfile about the migration status?Comment #26
quietone commented@Matroskeen, thank you for the review.
Great news to know that the patch passed manual testing!
Good point, yes, I completely forgot the review page tests. This patch adds entries in the source fixture to enable the two multiupload modules and then adjusts the tests as needed.
Comment #27
quietone commentedOops, missed a spelling error. Added a cSpell disable/enable to prevent the errors. I suppose 'Multiupload' could be added to the dictionary but this is the only occurrence, so the disable/enable seems like the right thing to do.
Comment #28
quietone commentedMore fixes for spelling. Seems I haven't properly ingrained running commit-code-check.
Comment #29
matroskeenI tested again with the last patch and confirm it's working properly: widget settings are migrated and there are no warnings on the review page.
The patch looks good to me and the testbot is happy.
Thanks!
Comment #30
quietone commented@Matroskeen, Thanks!
Comment #32
catchCommitted/pushed to 9.2.x.
This doesn't apply to 9.1.x - I'm marking fixed, but if someone wants to backport the patch, please re-open with the backport.
Comment #33
quietone commentedGreat! This is the last issue in the Meta #2456259: [META] Drupal 7 to Drupal 8 Migration path.
Comment #34
wim leersWoah, congrats, @quietone! 👏
WHAT AN ACHIEVEMENT!!!!!!!! 🥳🥳🥳🥳🙏🙏🙏
Comment #36
webchickWow, I somehow missed this fact! AMAZING!!! 🥳
Comment #37
quietone commentedUpdating tags per Issue tags field and Issue tags -- special tags for issue #3565085: Drupal core issue tag cleanup.