Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Getting this message when generating users. I've added fields to users.
Notice: Undefined property: stdClass::$language in devel_generate_fields() (line 69 of /var/www/sites/port7/sites/all/modules/devel/devel_generate/devel_generate.fields.inc).
Patch is forthcoming.
Comment | File | Size | Author |
---|---|---|---|
#1 | devel-generate-fields-language-1046940-1.patch | 448 bytes | marcp |
Comments
Comment #1
marcp CreditAttribution: marcp commentedNot sure if this is the right way to fix this. Appears that, at least for users, the language field in the user object is not set. If this is the case, it seems that we want to use LANGUAGE_NONE. That's what this patch does.
To apply, put it in sites/all/modules/devel and run patch -p 0 < devel-generate-fields-language-1046940-1.patch
Comment #2
avd81 CreditAttribution: avd81 commentedI am also getting the mentioned error message after generating users with the Devel module. Will this be corrected in future updates or is the patch the only solution?
Comment #3
salvisDid the patch work for you?
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedcommitted with slight changes.