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.
I was troubleshooting a problem in another module and I noticed that menu breadcrumb was indirectly doing a node_load in hook_init which is not allowed as far as I know.
Have a look at the backtrace below and you can see it. This hasn't caused me personally any problems so far (I was working on an unrelated issue) but I thought I would bring it to your attention and hopefully save someone else frustration in trying to figure out "some hard to find" bug.
(
[12] => Array
(
[file] => /srv/www/vhosts/dev/reg/m/multi-001/www/cms/index.php
[line] => 20
[function] => drupal_bootstrap
[args] =>
)
[11] => Array
(
[file] => /srv/www/vhosts/dev/reg/m/multi-001/www/cms/includes/bootstrap.inc
[line] => 989
[function] => _drupal_bootstrap
[args] =>
)
[10] => Array
(
[file] => /srv/www/vhosts/dev/reg/m/multi-001/www/cms/includes/bootstrap.inc
[line] => 1080
[function] => _drupal_bootstrap_full
[args] =>
)
[9] => Array
(
[file] => /srv/www/vhosts/dev/reg/m/multi-001/www/cms/includes/common.inc
[line] => 2629
[function] => module_invoke_all
[args] =>
)
[8] => Array
(
[file] => /srv/www/vhosts/dev/reg/m/multi-001/www/cms/includes/module.inc
[line] => 483
[function] => call_user_func_array
[args] =>
)
[7] => Array
(
[function] => menu_breadcrumb_init
[args] =>
)
[6] => Array
(
[file] => /srv/www/vhosts/dev/reg/m/multi-001/www/cms/sites/mysite.com/modules/menu_breadcrumb/menu_breadcrumb.module
[line] => 78
[function] => menu_get_item
[args] =>
)
[5] => Array
(
[file] => /srv/www/vhosts/dev/reg/m/multi-001/www/cms/includes/menu.inc
[line] => 316
[function] => _menu_translate
[args] =>
)
[4] => Array
(
[file] => /srv/www/vhosts/dev/reg/m/multi-001/www/cms/includes/menu.inc
[line] => 566
[function] => _menu_load_objects
[args] =>
)
[3] => Array
(
[file] => /srv/www/vhosts/dev/reg/m/multi-001/www/cms/includes/menu.inc
[line] => 410
[function] => node_load
[args] =>
)
[2] => Array
(
[file] => /srv/www/vhosts/dev/reg/m/multi-001/www/cms/modules/node/node.module
[line] => 767
[function] => node_invoke_nodeapi
[args] =>
)
[1] => Array
(
[file] => /srv/www/vhosts/dev/reg/m/multi-001/www/cms/modules/node/node.module
[line] => 679
[function] => themekey_ui_nodeapi
[args] =>
)
[0] => Array
(
[file] => /srv/www/vhosts/dev/reg/m/multi-001/www/cms/sites/mysite.com/modules/themekey/themekey_ui.module
[line] => 189
[function] => print_brt
[args] =>
)
)
Comments
Comment #1
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.