Undefined index: message_list in claro_preprocess_status_messages()

Created on 2 September 2021, over 3 years ago
Updated 11 October 2023, about 1 year ago

Problem/Motivation

When claro is enabled:
Notice: Undefined index: message_list in claro_preprocess_status_messages() (line 1042 of core/themes/claro/claro.theme).

When used with bootstrap_barrio:
Notice: Undefined index: message_list in bootstrap_barrio_preprocess_status_messages() (line 633 of themes/contrib/bootstrap_barrio/bootstrap_barrio.theme).

Steps to reproduce

Enable Claro theme.

Proposed resolution

Change:

    if ($uid != 1) {
      unset($variables['message_list']);
    }

To:

    if ($uid != 1) {
      $variables['message_list'] = [];
    }
🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom lexsoft London

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