Download & Extend

Infinite Loop in admin_menu_merge_tree (admin_menu.inc)

Project:Administration menu
Version:7.x-3.0-rc3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I am having an issue enabling admin menu and the toolbar.

On enabling, I get these errors,

Fatal error: Maximum function nesting level of '500' reached, aborting! in /includes/menu.inc on line 622 Call Stack: 0.0011 656504 1. {main}()
/docroot/index.php:0 2.8746 138818744 2. menu_execute_active_handler()
/docroot/index.php:21 3.8733 170061440 3. drupal_deliver_page()
/docroot/includes/menu.inc:531 3.8760 170101048 4. drupal_deliver_html_page()
/docroot/includes/common.inc:2471 3.8761 170102544 5. drupal_render_page()
/docroot/includes/common.inc:2583 4.8530 183770344 6. admin_menu_page_build()
/docroot/includes/common.inc:5616 4.8537 183777272 7. admin_menu_output()
/docroot/sites/all/modules/admin_menu/admin_menu.module:201 4.8541 183778936 8. admin_menu_tree()
/docroot/sites/all/modules/admin_menu/admin_menu.module:479 5.1610 200369480 9. admin_menu_merge_tree()
/docroot/sites/all/modules/admin_menu/admin_menu.inc:45 5.1610 200372552 10. admin_menu_merge_tree()

If I disable the nested call to admin_menu_merge_tree on line 239, the menu loads and it seems like it loads without any issues or missing items.

We have a TON of modules installed which may be an issue. We have never had the menu work in the past, so I haven't used it, but it seems like there is promise if disabling that one nested call allows the menu to load.

Any recommendations on what to try? I'm not really clear on exactly what the function is trying to do other then delve into the menu structure looking for links.

We do have i18n and Globalredirect installed which seem like possible causes for issues.

Thank you.

Comments

#1

I have all my administration right taken away. I can not instal a module either update it. it is looping.

#2

cobendes,

If you don't use drush, you can disable the module by deleting the folder. That may help you in the short term to get back control of your site.

#3

I have the same problem, Im currently debbuging, but I discovered that you can deactivate any module via database. With this code you will see the list of modules SELECT * FROM 'system' WHERE 'type' = 'module' ORDER BY 'system'.'status' DESC

The status in 1 means an active module so you must update the module status field to 0.

Hope this help someone

nobody click here