I'm using a context with conditions of a node type which sets an active menu item. When the context is active, I get calls to node_page_title()
where it is passing the id rather than the node object. I've tried to track down the problem, and other than wondering if it wasn't running _menu_load_objects()
before it tries to do the localization (which is where the call to node_page_title()
happens), I found that stopping it from overriding the active menu path (the call to menu_set_active_item()
in plugins/context_reaction_menu.inc line 124) by commenting out that line stopped the problem from occuring, yet still managed to set the active menu correctly.
I was chatting in #drupal-uk with chx and once getting that far I asked if there was any reason why overriding the active path might be a problem... "bazillions... too many active stuff :/"
Unfortuntely I don't know menu at all, so I'm not sure where to start going any deeper than that, but hopefully that's remotely helpful for tracking down the issue!
Comments
Comment #1
RavindraSingh CreditAttribution: RavindraSingh commentedI can't reproduce this issue with 7-x-3.6 release, can you please add steps? I am changing the status. you can update the status if you come with more info.