Closed (fixed)
Project:
Node breadcrumb
Version:
6.x-1.0-beta5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2009 at 17:02 UTC
Updated:
5 Nov 2009 at 11:40 UTC
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 commentedfixed in beta6