Hi,

I reinstalled Drupal8 today, and also git pull'd devel. I then enabled both modules. When I attempted to generate users, I got the message

Warning: Missing argument 2 for field_info_field(), called in /var/www/drupal-8/modules/devel/devel_generate/devel_generate.fields.inc on line 23 and defined in field_info_field() (line 214 of core/modules/field/field.deprecated.inc).
Notice: Undefined variable: field_name in field_info_field() (line 215 of core/modules/field/field.deprecated.inc).
InvalidArgumentException: Field is unknown. in Drupal\Core\Entity\EntityNG->getTranslatedField() (line 299 of /var/www/drupal-8/core/lib/Drupal/Core/Entity/EntityNG.php).

Regards,

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pcambra’s picture

Title: Missing argument » Fields are now bound to an entity type

Yeah, this has changed the way fields work: https://drupal.org/node/2078765

Kartagis’s picture

When will this be fixed?

pcambra’s picture

Category: bug » task
Priority: Major » Normal
Status: Active » Needs review
FileSize
4.99 KB

When will this be fixed?

The more you help, the faster it will be fixed.

Here's a patch that adapts the code to support D8 new fields.

I'm setting this as a task because, honestly, considering major bugs every time the core updates big stuff and devel gets something broken doesn't looks to me as a workflow at all.

Status: Needs review » Needs work

The last submitted patch, 2082443-fields_entity_type_devel-3.patch, failed testing.

pcambra’s picture

Status: Needs work » Needs review
Kartagis’s picture

Status: Needs review » Reviewed & tested by the community

It works now. You can commit it.

Thanks a lot.

PS: Wasn't sure whether to mark it RTBC or fixed, so marking it RTBC.

Regards,
K.

pcambra’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for testing, marking as fixed

Status: Fixed » Closed (fixed)

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