Problem/Motivation
Migrate mail system configuration from Drupal 7 site to Drupal 9 site.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | mailsystem-error.PNG | 125.78 KB | venkatesh rajan.j |
| #4 | interdiff_2-4.txt | 2.26 KB | srishtiiee |
| #4 | mail_system_migration_3253034-4.patch | 8.35 KB | srishtiiee |
| #2 | mail_system_migration_3253034-2.patch | 8.28 KB | srishtiiee |
Comments
Comment #2
srishtiiee commentedComment #3
wim leersLet's add a comment somewhat like this:
… that will help future readers understand why this is happening.
This dependency does not seems to make sense? It looks like a module dependency in a module's
*.info.ymlfile (see for examplecore/modules/editor/editor.info.yml), but that's not the same as a migration plugin's YAML file.I think these 3 lines can just be deleted entirely :)
$value['module']makes it sound like the assigned value will be a module name (i.e. a string). But it won't be. It's always an array.So let's change this to
Then you can simplify
to
Easier to read, right? 😊 Bonus: you can delete the
at the end as well!
Comment #4
srishtiiee commentedMade changes suggested in #3.
Comment #5
wim leersPerfect! 👍
Comment #6
berdir> Perfect! 👍
I'll just believe you on that ;)
Personally, I'm not sure how useful this migration is. these things weren't plugins in D7, there's no guarantee that the plugin ID's are still the same and that you even still want to use the same modules in D8+. Seems like something that you should probably manually reconfigure, but I suppose it doesn't hurt.
Comment #9
paul_leclerc commentedIt seems that this patch just adds a new directories structure (/b/..) with copies of the current (8.x-4.4) version files :
- mail_system_settings.yml
- MailSystemModules.php
I'm still getting a migration error which may not be related to mail_system :
So this patch can be applied but it just adds useless files as far as I know.
Comment #10
luke.stewart commentedI'm also getting that same error.
I'm not sure that adding broken functionality is a great UX?
Inserting some debugging I see that in the transform function in
web/modules/contrib/mailsystem/src/Plugin/migrate/process/MailSystemModules.php
the code expects $value to be a 3xn array i.e. $value[a][b][c] however the error occurs due to it receiving
interesting the "index" is NULL in this case?
Comment #11
sandip27 commentedThere is still error with this module during the Migration.
The code line at Line # 36 of MailSystemModules.php file -
$value[$module][$index]['formatter'] = $data;Since this issue is closed(fixed) and only maintainers can reopen, so would like this to be attended by the maintainers please and @srishtiiee at Acquia to please fix this broken functionality.
Thanks
Comment #12
venkatesh rajan.j commentedI have applied the patch and this issue is not yet resolved.
Comment #13
joelpittetCreated a follow-up issue for the reports after the initial commit #3463222: Error: Cannot use string offset as an array in MailSystemModules.php on line 36