"Drush updb failed in opigno_calendar_update_9001

Created on 30 August 2023, 10 months ago
Updated 1 February 2024, 5 months ago

Problem/Motivation

During execution of update hooks, Drush fails with the following error:

>  [notice] Update started: opigno_calendar_update_9001
>  [error]  The module module does not exist.
>  [error]  Update failed: opigno_calendar_update_9001

Steps to reproduce

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

Proposed resolution

Resolution to the hook_update_9001 is required, since it called incorrect set of function arguments:

  _opigno_module_apply_update('module', 'opigno_calendar', 'config/install', [
    'views.view.opigno_calendar',
    'core.entity_form_display.opigno_calendar_event.opigno_calendar_event.default',
    'core.entity_view_display.opigno_calendar_event.opigno_calendar_event.default',
  ]);
// 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_calendar', 'config/install', [
    'views.view.opigno_calendar',
    'core.entity_form_display.opigno_calendar_event.opigno_calendar_event.default',
    'core.entity_view_display.opigno_calendar_event.opigno_calendar_event.default',
  ]);

Remaining tasks

  1. Validate the patch provided by a broader community
  2. commit to the module codebase

User interface changes

N/A (no)

API changes

N/A (no)

Data model changes

N/A (no)

🐛 Bug report
Status

Downport

Version

3.1

Component

Code

Created by

🇮🇳India kanchamk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024