Closed (fixed)
Project:
Orejime
Version:
2.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2022 at 17:35 UTC
Updated:
13 Jan 2023 at 11:29 UTC
Jump to comment: Most recent
Warning: Undefined array key "browsers" in Drupal\orejime\Services\JsCollectionRendererOrejime->render() (line 43 of modules/contrib/orejime/src/Services/JsCollectionRendererOrejime.php).
Use the 2.0.0 version of the module with Drupal 10. (don't actually think it is D10 related, but that's how i found it).
Go to any admin page.
Personally fixed it with $element['#browsers'] = $js_asset['browsers'] ?? NULL; in \Drupal\orejime\Services\JsCollectionRendererOrejime::render(), but i did not take to the time to check what $element['#browsers'] is expecting, neither as the consequences of the change.
Comments
Comment #3
fabsgugu commentedThanks, I've never had this problem.
Instead of NULL I will give an empty array