License URL missing in magnific_popup.libraries.yml

Created on 14 November 2023, about 1 year ago
Updated 20 March 2024, 8 months ago

Without License URL field, Drupal 10.1.6 throws out an error:
Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup() (line 174 of core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php).


Install Magnific Popup, clear all caches and reload the homepage.

diff -up a/magnific_popup/magnific_popup.libraries.yml b/magnific_popup/magnific_popup.libraries.yml 
--- a/magnific_popup/magnific_popup.libraries.yml	2023-11-02 06:49:55.000000000 +0100
+++ b/magnific_popup/magnific_popup.libraries.yml	2023-11-14 11:31:33.429597000 +0100
@@ -3,6 +3,7 @@ magnific_popup:
   version: 1.0
   license:
       name: MIT
+      url: https://github.com/dimsemenov/Magnific-Popup/blob/master/LICENSE
   js:
     js/magnific-popup.js: {}
     /libraries/magnific-popup/dist/jquery.magnific-popup.min.js: {minified: true}

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇸🇮Slovenia LUTi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024