Problem/Motivation
When the message "There are errors with some installed modules. Visit the status report page for more information." is displayed in response to a component missing the "core_version_requirement" key, and the component in question is the site profile, no additional details are displayed on the Status Report Page, leaving the site administrator with no idea where the problem is coming from.
This message was added as part of issue #3123537: /admin/reports/status should not WSOD if it finds an extension missing core_version_requirement in its info.yml file.
Steps to reproduce
Remove the "core_version_requirement" key from your custom site profile and then visit the "Extend" admin page.
Proposed resolution
I would imagine the code is pulling all components (modules, themes, profiles) to check for that "core_version_requirement" key, but is only processing modules when it comes to injecting messages into the Status Report. Either the Extend page needs to exclude everything not a module from the "core_version_requirement" check, or the code for the Status Report needs to explicitly check profiles and display a message about what is wrong.
Comments
Comment #2
cilefen commentedComment #3
WebbehComment #8
nicxvan commentedCan someone confirm this is still happening please?
Should be straightforward to add to hook_runtime_requirements.
Comment #9
iacwebdev commentedWell, it seems like after four and a half years it's become something of a moot point. At least, I tried to do a test against the most recent release of Drupal 11 (11.2.5), but when I removed the 'core_version_requirement' key from the site's custom profile and tried to clear caches, the site went WSOD on me. Not sure if that's related to the connected issue above or not, as that one looks to have been resolved back with Drupal 9, though I couldn't discern exactly what kind of fix was implemented.
In any case, I don't know how to test now, but I suppose the WSOD and the error in the logs that made it clear Drupal wasn't happy about the missing 'core_version_requirement' key in the profile's info.yml file make it pretty clear to admins now what's wrong and what needs to be fixed. I'm not sure going from a detail-less error message to a WSOD is an improvement, but I suppose at this point not too many people will be dealing with profiles that are old enough to still be missing the 'core_version_requirement' key.
Comment #10
nicxvan commentedThank you for coming back to test after all of this time!
Yes I think this is the expected behavior at this point.
I'm going to close this for now as works as designed.