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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marcp’s picture

Not 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

avd81’s picture

I 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?

salvis’s picture

Status: Active » Needs review

Did the patch work for you?

moshe weitzman’s picture

Status: Needs review » Fixed

committed with slight changes.

Status: Fixed » Closed (fixed)

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