Lots of php notices

Created on 15 December 2020, almost 4 years ago
Updated 2 March 2023, over 1 year ago

i get a lot of php notices

Notice: Undefined index: weight in Drupal\Core\Asset\AssetResolver::sort() 

from web/modules/contrib/cookie_content_blocker/src/Render/HtmlResponseAttachmentsProcessor.php.

There it calls uasort with a sorting function from Drupal\Core\Asset\AssetResolver. This function assumes indices weight and group. But somehow the time cookie_content_blocker wants so sort, there is no weight. i only get the notices directly after clearing cache when aggreagtion of css/js and advagg are enabled, on the second reload there are no notices. so i think something is missing the first time....

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇹Austria crmn

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024