When creating an entityreference_count field, after saving the field settings, this notice is displayed:
Notice: Undefined variable: settings in entityreference_count_field_instance_settings_form() (line 68 of ... /sites/all/modules/contrib/entityreference_count/entityreference_count.module).
Notice: Undefined variable: settings in entityreference_count_field_instance_settings_form() (line 74 of ... /sites/all/modules/contrib/entityreference_count/entityreference_count.module).
Further, when I attempt to set:
"Entity reference fields that may be counted", the field doesn't save and these warnings display:
Notice: Undefined variable: settings in entityreference_count_field_instance_settings_form() (line 68 of ... /sites/all/modules/contrib/entityreference_count/entityreference_count.module).
Notice: Undefined variable: settings in entityreference_count_field_instance_settings_form() (line 74 of ... /sites/all/modules/contrib/entityreference_count/entityreference_count.module).
Warning: Invalid argument supplied for foreach() in form_type_checkboxes_value() (line 2267 of ... /includes/form.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | entityreference_count-undefined-settings-1664556.patch | 555 bytes | jwilson3 |
Comments
Comment #1
gboggs commentedAnd, when saving a user profile that references the content type with a count field this notice displays:
Notice: Undefined property: FieldCollectionItemEntity::$type in entityreference_count_references_update() (line 400 of ... /sites/all/modules/contrib/entityreference_count/entityreference_count.module).
Notice: Undefined property: stdClass::$type in entityreference_count_references_update() (line 400 of ... /sites/all/modules/contrib/entityreference_count/entityreference_count.module).
Comment #2
jwilson3@gboggs, the issue in #1 is covered by the patch in #1670298: Check for undefined $entity->type in entityreference_count_references_update.
Comment #3
jwilson3There was a variable misspelled....
This patch replaces "$settigs" with $settings on line 51 of the module file.
Comment #4
jwilson3Committed: http://drupalcode.org/project/entityreference_count.git/commit/4dba244