Revert admin_menu_tree() to public function

Created on 7 June 2023, over 1 year ago
Updated 7 July 2023, over 1 year ago

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.

πŸ› Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary szt

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @szt
  • Status changed to Needs review over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States ron_s

    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.

  • Status changed to RTBC over 1 year ago
  • πŸ‡­πŸ‡ΊHungary szt

    Thanks, it works well!

  • πŸ‡ͺπŸ‡ΈSpain altrugon

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

Production build 0.71.5 2024