Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
O-khainouski CreditAttribution: O-khainouski as a volunteer and at EPAM Systems commented