Trying to make a field with Drush, i get the following error

First, the version

root@homer:/usr/share/nginx/html/8/sites/default# drush version
 Drush Version   :  8.0.1 

Try to make a field 'voorvoegsel' (dutch) with field-create in Content-type contact

root@homer:/usr/share/nginx/html/8/sites/default# drush field-create contact voorvoegsel,text
PHP Fatal error:  Call to undefined function field_info_field() in phar:///usr/local/bin/drush/commands/core/field.drush.inc on line 175
Drush command terminated abnormally due to an unrecoverable error.                                                                                                    [error]
Error: Call to undefined function field_info_field() in phar:///usr/local/bin/drush/commands/core/field.drush.inc, line 175

Googling gives me no clue, so i post this here. Can't find a (good) solution.

1 Answer 1


Drush doesn't support field commands for Drupal 8 yet. The error message is caused by the fact that Drupal 8 no longer has a function field_info_field() - see Drupal change record at https://www.drupal.org/node/2260037

Drush issue at https://github.com/drush-ops/drush/issues/230

  • Thanks, wasn't aware of that. Is indeed Dr8, not 7.
    – MatthijsG
    Commented Feb 5, 2016 at 15:08
  • This is still not working.
    – Matt B
    Commented Jun 9, 2021 at 12:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.