System Requirements errors when profile other than 'standard` used to install

Created on 29 June 2022, almost 2 years ago
Updated 28 November 2023, 7 months ago

Problem/Motivation

When trying to view the configuration menu or status report page of a site installed using the 'minimal' profile as a base I receive an error message:
Drupal\Core\Extension\Exception\UnknownExtensionException: The module minimal does not exist or is not installed. in Drupal\Core\Extension\ExtensionList->getExtensionInfo() (line 346 of core/lib/Drupal/Core/Extension/ExtensionList.php).

Steps to reproduce

Install a clean site using the `minimal` profile.
Login and browse to `/admin/reports/status`

Proposed resolution

The hook_requirements implementation in system.install checks the name of the installprofile, and if it is not 'standard' then it attempts to load the profile, but is attempting to load it via the `extension.list.module` service instead of the `extension.list.profile` service.

Replacing the lookup call with one that uses the proper service. appears to fix the issue.

πŸ› Bug report
Status

Needs work

Version

10.2 ✨

Component
SystemΒ  β†’

Last updated 1 day ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States zenphp Norwood, NY

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • @olarin opened merge request.
  • Status changed to Needs review over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States Olarin

    This appears to be a guaranteed issue for any new site audacious enough to attempt to use any install profile other than standard (including the core-provided minimal), and there's no workaround to my knowledge, so I think it would qualify as Major priority.

    I added a MR for the 10.1.x branch. I'm not sure where to start on adding a relevant test.

  • Status changed to Needs work over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    May be worth starting in Drupal\FunctionalTests\Installer

    Did an Umami install profile yesterday without issue just fyi

  • πŸ‡³πŸ‡ΏNew Zealand John Pitcairn

    Just bitten by this with a minimal install. Not the first time either from memory. MR3639 does appear to fix the problem.

    Is this still a 10.x candidate or does it need to be 11.x now?

Production build 0.69.0 2024