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

Files: 
CommentFileSizeAuthor
#2 1190466-1.patch3.22 KBpwolanin
PASSED: [[SimpleTest]]: [MySQL] 84 pass(es).
[ View ]

Comments

inductor’s picture

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

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
StatusFileSize
new3.22 KB
PASSED: [[SimpleTest]]: [MySQL] 84 pass(es).
[ View ]

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.

pwolanin’s picture

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

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

pwolanin’s picture

Status:Needs review» Fixed

committed and rolling a fixed release.

Thanks.

j0nathan’s picture

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...

j0nathan’s picture

Status:Needs review» Fixed

oups

pwolanin’s picture

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

j0nathan’s picture

6.x-1.8 fixed my issues.
Thanks.

inductor’s picture

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

pwolanin’s picture

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

Status:Fixed» Closed (fixed)

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