I installed drush on my local Drupal configuration (multisite with 2 Drupal 6-19 sites on my laptop) to play around with the commands in a multisite environment.
All the commands I tried worked fine except user create...
When I try to invoke user-create, drush prompts me with a "Field name :" and exits with an error for any value entered, with the following message :
el-sio@moria:/var/www/drupal$ drush -l example.com ucrt drushtest
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
Field name: field
PHP Fatal error: Call to undefined function field_ui_field_type_options() in /home/el-sio/drush/commands/core/field.drush.inc on line 270
Drush command could not be completed. [error]
el-sio@moria:/var/www/drupal$
Same result with the complete function name user-create (not an alias issue).
It seems it tries to invoke commands to create CCk fields, which has nothing to do with users (as far as I know which is not very far...). Am I missing something here or did the user-create function was messed up ?
All other user related functions work perfectly...
Thanks for the great work so far, it will change our lives here with a multisite environment of 12 websites (languages versions) and good luck with drush 4.0
Best,
Comments
Comment #1
luchochs commentedThis seems to be related to
drush_invoke()and this:Comment #2
luchochs commentedThe problem here is that the command 'user-create' becomes 'create' before being invoked. This can be corrected avoiding explicit callback functions in the command definition.
This will be fixed anyway if this patch is appropriate: #929284: Explicit callback functions with special names.
Comment #3
luchochs commented