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.
Fatal error: Unsupported operand types in /var/www/pinpoint/includes/common.inc on line 1582
when retrieving a non-existent URL.
Tracked down by trial and error to line 68 of node_breadcrumb.module:
function node_breadcrumb_init() {
$menu_item = menu_get_item();
drupal_get_title();
menu_set_active_menu_name(db_result(db_query("select menu_name from {menu_links} where link_path='%s'", $menu_item['href'])));
}
Changed to:
function node_breadcrumb_init() {
$menu_item = menu_get_item();
if($menu_item) {
drupal_get_title();
menu_set_active_menu_name(db_result(db_query("select menu_name from {menu_links} where link_path='%s'", $menu_item['href'])));
}
}
Not sure if this is a fudge, but 404s are displaying again and correct breadcrumbs are being displayed for the rules I've set up.
(Great module btw, couldn't deliver sites without it)
Comments
Comment #1
edhel CreditAttribution: edhel commentedfixed in beta6