Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As soon as I enable the menu_breadcrumb module, project.module breaks - I can create new project nodes fine, but when I try to edit an existing one, all the fields that come from project.module are blank.
This seems to be similar in nature to the issue being discussed at #376377: Issue + organic group incompatibility in that project_project_load fails to load, and so $node->project is empty making editing project nodes impossible.
Comments
Comment #1
mrfelton CreditAttribution: mrfelton commentedA little update on this: the problem is that menu_breadcrumb calls menu_get_item() in hook_init(). This is the same issue that was reported in some detail against the globalredirect module here #342131: Use of hook_init() causes problems for modules with autoloading URL arguments. Since this is a problem of menu_breadcrumb, I'm moving this issue over to the menu_breadcrumb issue queue.
Comment #2
subcomandante CreditAttribution: subcomandante commentedI have the same problem forcing me to disable menu_breadcrumb module on all my sites which uses project module. Hope this will be simple to fix because I found this module very useful.
Tnx
Comment #3
dazweeja CreditAttribution: dazweeja commentedThis module causes the same problem with OG Forum and I assume any other module that uses _load functions to autoload URL arguments. Can menu_get_item() be moved outside of hook_init() so that it doesn't break other modules? As mentioned in the issues linked above, this is why menu_get_item() is not used in any core modules until after all bootstrap functions have had a chance to complete.
Comment #4
joemaine CreditAttribution: joemaine commentedYes, issue with OG Forum
Comment #5
ru.meta CreditAttribution: ru.meta commented+1 with OG Forum
Comment #6
dazweeja CreditAttribution: dazweeja commentedThis patch solves the problem for OG Forum.
Comment #7
Patrizio CreditAttribution: Patrizio commentedMaybe it solves the OG problem, but i still have the project module incompatibility
+1
Comment #8
Patrizio CreditAttribution: Patrizio commentedmenu_get_item() is not the problem, but it is useless.
Removing the function drupal_get_breadcrumb(), the breadcrumb still compare and the problem does not occur
Comment #9
xurizaemonCleaning up issue queue. Closing all D6 issues.
If you believe this issue still applies to a supported version, feel free to re-open it. That would be a great time to check if the issue contains clear steps for reproducing the bug!
Thanks and sorry for any inconvenience.