Download & Extend

Fatal error: Call to undefined function admin_menu_exit() breaks some drush commands

Project:Administration menu
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I just upgraded from 1.6 to 1.7 and some drush commands stopped working. For example, when I try to execute `drush dd`, I get the following error:
Fatal error: Call to undefined function admin_menu_exit() in /var/www/dev/moytour/sites/default/modules/contrib/admin_menu/admin_menu.drush.inc on line 10

Comments

#1

Title:Fatal error: Call to undefined function admin_menu_exit()» Upgrade to 1.7 breaks drush.

#2

Title:Upgrade to 1.7 breaks drush.» Fatal error: Call to undefined function admin_menu_exit()
Version:6.x-1.7» 6.x-1.x-dev
Status:active» needs review

This mostly reverts the test cases to their earlier form, plus adds a function_exists() call to the drush in to protect against the fatal error.

AttachmentSizeStatusTest resultOperations
1190466-1.patch3.22 KBIdlePASSED: [[SimpleTest]]: [MySQL] 84 pass(es).View details

#3

Title:Fatal error: Call to undefined function admin_menu_exit()» Fatal error: Call to undefined function admin_menu_exit() breaks some drush commands

#4

with this patch, "drush dd" works with admin_menu enabled or disabled.

#5

Status:needs review» fixed

committed and rolling a fixed release.

Thanks.

#6

Status:fixed» needs review

Same error message when trying to migrate a site, in Aegir, to a new platform with the new version of admin_menu. I will try the patch...

#7

Status:needs review» fixed

oups

#8

Let me know if for some reason it's not fixed.

#9

6.x-1.8 fixed my issues.
Thanks.

#10

It`s really exciting - only two hours between the bugreport and the new release! Thanks, pwolanin!

#11

Sorry to have introduced the bug in the first place - my lack of understanding fully how drush works.

#12

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.