PHP warning when enabling media_folder_management: Undefined array key in ModulesListConfirmForm->buildMessageList()

Created on 7 April 2025, 9 days ago

Problem/Motivation

When attempting to enable the `media_folder_management` module via the `/admin/modules` page, a PHP warning is triggered:

Warning: Undefined array key "media_folder_management" in Drupal\system\Form\ModulesListConfirmForm->buildMessageList() (line 150 of core/modules/system/src/Form/ModulesListConfirmForm.php).

This warning appears to be caused by missing metadata or configuration expected by the module system during the module enabling process.

Steps to reproduce

1. Go to `/admin/modules`
2. Check the box to enable `media_folder_management`
3. Click "Install"
4. Observe the warning message in the logs or on-screen (if error reporting is enabled)

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇵🇹Portugal falsovsky

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

Comments & Activities

Production build 0.71.5 2024