As per https://www.drupal.org/project/drupal/issues/3359497, when libraries have a license specified, then the url must be included.
The media_directories_ui.libraries.yml file specifies the MIT license, but does not include a URL.
This leads to an error "Undefined array key 'url' in ... JsCollectionOptimizerLazy.php", which I was seeing after upgrading a recent site to Drupal 10.1.x.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | media_directories-license-url-3395025-2.patch | 761 bytes | gomez_in_the_south |
Comments
Comment #2
gomez_in_the_south commentedAttached patch adds the license url as: http://opensource.org/licenses/mit-license.php, which I had seen referenced in other modules.
Comment #4
ytsurkThank you for your contribution!
Comment #5
gomez_in_the_south commentedPleasure, @ytsurk.
Would it be possible to get a new release? Otherwise other users may come across the same problem.