- Issue created by @kanchamk
During execution of update hooks, Drush fails with the following error:
> [notice] Update started: opigno_moxtra_update_9004
> [error] The module module does not exist.
> [error] Update failed: opigno_moxtra_update_9004
> [error] Update aborted by: opigno_moxtra_update_9004
> [error] Finished performing updates.
Apply module update from a previous version, in my case I was applying update to "opigno/opigno_lms", via composer 1.x, from version 2.29. Now using "opigno/opigno_lms" version 3.1.1
Resolution to the hook_update_9004 is required, since it called incorrect set of function arguments:
_opigno_module_apply_update('module', 'opigno_moxtra', 'config/install', [
'field.field.opigno_calendar_event.meeting_calendar_event.field_meeting'
]);
_opigno_module_apply_update('module', 'opigno_ilt', 'config/install', [
'field.field.opigno_calendar_event.ilt_calendar_event.field_ilt'
]);
// Note that the "_opigno_module_apply_update" requires first argument to be a module name (it appears that a file extension was passed instead).
The expected function call is:
_opigno_module_apply_update('opigno_moxtra', 'config/install', [
'field.field.opigno_calendar_event.meeting_calendar_event.field_meeting'
]);
_opigno_module_apply_update('opigno_ilt', 'config/install', [
'field.field.opigno_calendar_event.ilt_calendar_event.field_ilt'
]);
N/A (no)
N/A (no)
N/A (no)
Downport
3.1
Code