After upgrading to 8.x-4.18 almost any page of my site is showing this error message:
Notice: Undefined index: class in bootstrap_barrio_preprocess_html() (line 19 of themes/contrib/bootstrap_barrio/bootstrap_barrio.theme).
I just added a check of key existence on line 19:
if (!array_key_exists('class', $variables['attributes']) || !is_array($variables['attributes']['class'])) {
Hope this helps.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | bootstrap-barrio-undefined-index-class-3031276.patch | 645 bytes | nessunluogo |
Comments
Comment #2
nessunluogo commentedComment #3
danjdewhurst commentedGetting the same, I made the same change as you.
Comment #4
nessunluogo commentedAdding a patch.
Comment #5
nessunluogo commentedSubmitting new patch fixing index/directory error (sorry)
Comment #7
hatuhay commented