Does not always discover disabled modules

Created on 27 March 2024, 9 months ago
Updated 5 April 2024, 9 months ago

Problem/Motivation

If new and disabled module is added, it is not found and results in this error:

Drupal\aidev\Exception\AIDevException: Module with a name "modulename" not found. in Drupal\aidev\Source->getProjectPath() (line 144 of /public_html/web/modules/contrib/aidev/src/Source.php).

This is because Drupal\Core\Extension\ModuleExtensionList::getPath() is designed to work with information about modules that are recognized by the Drupal system - including both enabled and disabled modules, as long as they are discovered in the Drupal filesystem beforehand.

Quick workaround is go to Extensions list (/admin/modules) so module will be discovered by Drupal, and then use normally.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇱🇹Lithuania mindaugasd

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

Comments & Activities

Production build 0.71.5 2024