Closed (fixed)
Project:
Node Trail
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
17 Mar 2009 at 20:01 UTC
Updated:
30 Aug 2009 at 07:10 UTC
Jump to comment: Most recent
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
Comment #1
Anonymous (not verified) commentedWhen 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...
Comment #2
davemybes commentedI'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.
Comment #3
zorroposada commentedSome 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);
Comment #4
osopolarsee 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.
Comment #5
davyvdb commented