Needs work
Project:
Drupal core
Version:
main
Component:
media system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Feb 2020 at 07:26 UTC
Updated:
18 Aug 2025 at 00:10 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
sivaji_ganesh_jojodae commentedComment #3
hardik_patel_12 commentedKindly review a patch.
Comment #4
hardik_patel_12 commentedComment #5
sivaji_ganesh_jojodae commentedPatch #3 works great.
I would suggest putting the "FILE SYSTEM" error on the top. Because that eventually fixes the MEDIA SYSTEM public://media-icons/generic directory error automatically. I tried to set the weight on
hook_requirements()but doesn't seem to work.Comment #6
mradcliffeI'm not sure if flipping the order should be in scope of this issue. The weight is most likely going to be associated with the module/extension weight. I removed the Novice issue tag because I do not think there is enough information here for someone to pick up and work on with regard to requirements order.
I updated the version to 8.9.x. This would apply to the most recent version for development rather than a specific release.
I also found a related issue for inline template is used in requirements when using drupal console #3081572: Unexpected description format when parsing the unmet requirements message string.
Comment #7
sivaji_ganesh_jojodae commentedOkay, fine.
Able to set weight (like menu items) in the
hook_requirements()might be a good feature request.The file path in the error message seems not making much sense from the user standpoint.
Comment #8
naresh_bavaskar#3 applied properly. LGTM + RTBC
Assuming set weight not covering in this issue. Thanks
Comment #9
alexpottThis should be next to
$requirements['media']['description'] = $description;In fact this section deserves a little bit of a rework for clarity...
Comment #11
kishor_kolekar commentedI've re-rolled patch for 9.1
Comment #12
sivaji_ganesh_jojodae commented@alexpott, regarding,
that code block looks closer to
system.install'shook_requirements(),can you brief what kind of rework is there in your mind?
Comment #16
larowlanFor #12
Comment #20
mstrelan commentedThis has moved to
\Drupal\media\Install\Requirements\MediaRequirements::getRequirements. It's also not in system.module so I'm updating the component.I think now that this is in a much more isolated function we can use early returns for clarity. Something like this:
Comment #22
mstrelan commentedComment #23
smustgrave commentedTried to ping in #core-development but no luck. Think good to unassign after all the years and since it moved to media maybe doesn't need sub-maintainer for system.
Can we cleanup the summary though seems like a different solution is being used now right?