With Admin Menu Source module the following comes (with WSOD) after log in:

Fatal error: Call to undefined function admin_menu_tree() in /sites/all/modules/admin_menu_source/admin_menu_source.module on line 70

Downgrade back to AM 7.x-3.0-rc6 solves the problem.

Comments

szt created an issue. See original summary.

sgdev’s picture

Title: Call to undefined function admin_menu_tree() » Revert admin_menu_tree() to public function
Version: 7.x-3.0-rc7 » 7.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new1.35 KB

The update in 7.x-3.0-rc7 caused admin_menu_tree to become a private function.

The Admin Menu Source module (https://www.drupal.org/project/admin_menu_source) calls admin_menu_tree in hook_admin_menu_output_alter() to build menus for different roles. By making the function private, admin menu can no longer load for any role with a customized admin menu.

Please review the attached patch which reverts admin_menu_tree to be a public function again. Thanks.

szt’s picture

Priority: Normal » Major
Status: Needs review » Reviewed & tested by the community

Thanks, it works well!

altrugon’s picture

Patch on #2 works, thank you. Please apply it.

In my case the error looked like this:

Got error 'PHP message: PHP Fatal error: Call to undefined function admin_menu_tree() in .../modules/contrib/redhen/redhen.module on line 73\n', referer: https://<domain>/user