When I run "drush permissions-user USER", I get an error about an undefined function.

% drush --full permissions-user rickumali

Fatal error: Call to undefined function _drush_user_get_users_from_arguments() in /home/private/.drush/drush_permissions/permissions.drush.inc on line 128
Drush command terminated abnormally due to an unrecoverable error.   [error]
Error: Call to undefined function _drush_user_get_users_from_arguments() in
/home/private/.drush/drush_permissions/permissions.drush.inc, line 128

Thank you!

CommentFileSizeAuthor
#2 undefined_function-1869966-2.patch2.8 KBlolandese
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greggmarshall’s picture

Issue summary: View changes

I have a feeling you are trying to use this Drush command on a Drupal 6 site, and Drupal 6 doesn't have that function in the API.

lolandese’s picture

Status: Active » Needs review
FileSize
2.8 KB

The used function is only available until Drush version 6. See http://api.drush.org/api/drush/commands%21user%21user.drush.inc/function.... This is also the case for the dependency function _drush_user_get_uid(). See http://api.drush.org/api/drush/commands%21user%21user.drush.inc/function....

Solution is to integrate these functions in the code of Drush Permissions.

  • lolandese committed 891980b on 7.x-1.x
    Issue #1869966 by lolandese, greggmarshall, rickumali: permissions-user...
lolandese’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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