System requirements function uses wrong service for profiles

Created on 20 September 2021, over 2 years ago
Updated 2 June 2022, about 2 years ago

Problem/Motivation

I get a fatal error when accessing paths such as 'admin/reports/status' or 'admin/config'. The error is about my custom installation profile not found.

Steps to reproduce

Install the site using a non standard profile, like a custom one. Then try to access 'admin/config' or 'admin/reports/status' pages.
This happens in all drupal 8 & 9 versions

Proposed resolution

The reason is that the system module tries to find the profile using the service for module discovery, not the one for profile discovery.

Remaining tasks

User interface changes

API changes

Data model changes

No one

Release notes snippet

🐛 Bug report
Status

Closed: cannot reproduce

Version

9.5

Component
System 

Last updated 2 days ago

No maintainer
Created by

🇫🇮Finland eldrupalista

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.

  • We recently had this issue as well after upgrading Drupal 9.5 on Pantheon using the decoupled profile. If someone can suggest a way to reproduce then I can gladly contribute a fix moving forward.

    I had to create my own patch as the code has since changed and it didn't like the patch provided, but the changes were identical; I'm new to Drupal so I'm not sure the policy on submitting patches that may be unique to a specific environment (or if this even is an environmental difference or a core difference - I'm unsure)

    That said the changes in the patch did fix the issue and might be beneficial to move into core.

Production build 0.69.0 2024