Error with Barrio theme

Created on 13 May 2022, over 2 years ago
Updated 22 July 2024, 5 months ago

Problem/Motivation

After installation of Tabtamer, I got this error :

The website encountered an unexpected error. Please try again later.
TypeError: Unsupported operand types: array + null in bootstrap_barrio_preprocess_menu_local_task() (line 461 of themes/contrib/bootstrap_barrio/bootstrap_barrio.theme).

Here is the code :

/**
 * Implements hook_preprocess_HOOK() for menu-local-task.html.twig.
 */
function bootstrap_barrio_preprocess_menu_local_task(&$variables) {
  $link = $variables['element']['#link'];
  $url = $link['url'];
  $options = $url->getOptions();
  $url->setOptions($options + $link['localized_options']); /* Line 461 */
  $variables['item'] = Link::fromTextAndUrl($link['title'], $url);
}

Steps to reproduce

- Install Barrio theme (5.5.4)
- Install tabtamer

Proposed resolution

I will see with Barrio developers but if you have some solution...

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France bessonweb

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