Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
"drush dmu-upgrade MODULE_NAME" give me 2 errors:
Argument 2 passed to Drupal\drupalmoduleupgrader\Plugin\DMU\Converter\Functions\EntityOperationDeriver::__construct() must be of the [error]
type array, null given, called in
/var/www/html/drupal/modules/drupal/moduleupgrader/src/Plugin/DMU/Converter/Functions/EntityOperationDeriver.php on line 32 and
defined EntityOperationDeriver.php:20
Drush command terminated abnormally due to an unrecoverable error. [error]
Comments
Comment #2
HongPong CreditAttribution: HongPong at kor group commentedIf possible can you provide the stack trace in something like a github gist? Without reference to the original code this was attempted on, it can't be reproduced. If there is more information available please re-open the issue.
Comment #3
solide-echt CreditAttribution: solide-echt commentedI'm not sure how to provide the full stack trace but here's additional info:
Upon further inspection (dump($container->get('config.factory')->get('drupalmoduleupgrader.functions')) I noticed the definitions key (line 1013 in ImmutableConfig) is indeed null (#definitions: null). I am, however, at a complete loss how to interpret this...
Comment #4
HongPong CreditAttribution: HongPong at kor group commentedThanks for filling this in - maybe it is possible to run a few of the upgrader functions instead of the full suite? Would you say this happens right away, or after some of it is processed?
Comment #5
plachI experienced this after messing with the Conflig Split module and accidentally deleting all the DMU configuration. Reinstalling DMU properly allowed me to get rid of the error.
Comment #6
ugintl CreditAttribution: ugintl commentedI am getting this error while trying to upgrade a D7 module. Drupal 8.9, drush 9 and drupalmoduleupgrader latest dev version. I have searched a lot. In fact this is the 3rd day I am trying to solve this problem. I have also tried drush 10 and different version of the module. If someone can try upgrading and see if you get the same result. I am trying to upgrade https://www.drupal.org/project/menu_editor
If everything goes well on your side, I would appreciate if you can send me the upgraded module.
Comment #7
joseph.olstadfixed here:
#3180085: Fatal error logging exceptions in upgrade()