the module does not work because of calls to an undefined function: _menutrails_recurse_crumbs on lines 98 and 114

you must change the calls to be: nodetrail_get_breadcrumbs

also, there are warnings produced because of the call to menu_parent_options because the second parameter. change the cal to include the second parameter: $options = menu_parent_options(menu_get_menus(),array('mlid'=>0));

Comments

Anonymous’s picture

When I done this, old errors are gone, but when I try to load a node, that has NodeTrail setting applyed browser doesn't shows my page ("Server doesn't respond")... If I switch off NodeTrail everything again works fine...

davemybes’s picture

I'm guessing that the two calls should go to _nodetrail_recurse_crumbs instead. That removes the WSOD, but doesn't actually seem to set the active trail.

*edit* Correction. The active trail IS set correctly, except that its called active-trail and not active. So be sure to edit your CSS to account for this. So with the above change, the module works perfectly.

zorroposada’s picture

Some handy tips to get the nodetrail module up and running quickly. Nodetrail is a great module that allows you set customs menu trails to any node.

When you install the node, you will get error messages, in order to fix them modify nodetrail.module file.

Line 26 missing parameter array('mlid' => 0):
$options = menu_parent_options(menu_get_menus(),array('mlid' => 0));

Line 98 correct function name _nodetrail_recurse_crumbs:
_nodetrail_recurse_crumbs($tree, $item, $crumbs);

osopolar’s picture

see also this post #524640: Integrate nodetrails into the menu settings section (provided by the core menu module), it contains the mentioned fixes in a patch ... but also some other changes. Please review and discuss my work there.

davyvdb’s picture

Assigned: Unassigned » davyvdb
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.