Hi,

When the module runs its magic, it determines the menu item to set active correctly (in main-menu), but when it calls menu_tree_set_path() in menu_trail_by_path.module on line 63, in that function, there are no paths to set active. That is, in menu.inc after line 1181: $paths is NULL.

The 'parent' page is a view page. The 'child' are node detail pages.
The main-menu is rendered as a menu-block using context.

We do have installed:
1. menu modifiers

  • menu_admin_per_menu
  • menu_block
  • menu_target

Are there know issues with any of these?

2. Also using hook_page_delivery_callback_alter()

  • context

Might the combination of menu-block and context be the cause of this?

I'll continue to investigate this, but suggestions or insights are most welcome.

Greetings,
Andreas

CommentFileSizeAuthor
xdebug.png310.08 KBandreasderijcke
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andreasderijcke created an issue. See original summary.

davy-r’s picture

I don't actually see how menu_admin_per_menu is causing your issue in the menu module, no known issues with other modules exist as far as I'm aware of... Active development happens on the 7.x-3.x-dev branch (stable release scheduled for 1 sept), that branch doesn't rely on menu_tree_set_path() for other reasons. Does that solve your issue?

andreasderijcke’s picture

Okay, nevermind.

It seems something was off in config. After re-configging all related settings, incl pathauto, it all came through as expected.
Both for version 2.x als 3.x.

davy-r’s picture

Status: Active » Closed (cannot reproduce)