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.

Comments

nessunluogo created an issue. See original summary.

nessunluogo’s picture

Issue summary: View changes
danjdewhurst’s picture

Getting the same, I made the same change as you.

nessunluogo’s picture

Adding a patch.

nessunluogo’s picture

StatusFileSize
new645 bytes

Submitting new patch fixing index/directory error (sorry)

  • hatuhay committed ca56deb on 8.x-4.x authored by nessunluogo
    Issue #3031276 by nessunluogo, danjdewhurst: Notice: Undefined index:...
hatuhay’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.