Update hook fails when upgrading to 8.x-1.11

Created on 31 May 2024, 6 months ago
Updated 28 June 2024, 5 months ago

Problem/Motivation

When upgrading module to 8.x-1.11, the hook update fails. This is happening because if the default bundle doesn't exist.
Adding a check in hook_update_8904 and hook_update_8905 to check the bundle if exist will be useful for the sites which doesn't use the default bundle.

Attached screenshot.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.11

Component

Code

Created by

🇮🇳India kavbiswa

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

Comments & Activities

  • Issue created by @kavbiswa
  • 🇫🇷France rubberg

    Hello!

    I can confirm the bug that encountered @kavbiswa and that the patch submited cleared the error on drush updb.

    Steps to reproduce :

    1. Install DMB module in version 1.7 (first version D10 compatible) and enable it.
    2. Remove the default DMB Notification type installed by default here > admin/structure/dmb_notification_types (drush updb will work if you don't do this).
    3. Update DMB module to last version 1.11
    4. Launch drush updb command : it causes error
    5. Install patch
    6. Launch drush updb command : no error!

    See captions attached to my comment.

    Thank you @kavbiswa for your work!

Production build 0.71.5 2024