We use the french language on a site.
After update php to 7.4 version we faced with Notice: Trying to access array offset on value of type bool in smart_breadcrumb_menu_crumb_title() (line 18 of modules/contrib/smart_breadcrumb/smart_breadcrumb_menu/smart_breadcrumb_menu.module).

  // first look for a custome menu route for the current path
  $menu_item = menu_get_item($path);

  // menu_get_item will return parent menu items, we're only interested in the current path
  if ($menu_item['path'] == $path && !empty($menu_item['title'])) {
    $title = call_user_func($menu_item['title_callback'], $menu_item['title']);
  }

The function menu_get_item returns False if the function _menu_translate returns False.

Comments

O-khainouski created an issue. See original summary.

O-khainouski’s picture

Status: Active » Needs review