Hey,
i have included a node_form as subform in the user_profile_form.
My node_form contents a field, which is term reference to a vocabulary.
Now when i save the user_profile_form,
i get these errors :

if i don't enter any value for term reference, then

Warning: Invalid argument supplied for foreach() in taxonomy_field_presave() (line 1647 of /var/www/saasmax/trunk/modules/taxonomy/taxonomy.module).

if i enter some value in the term reference, then

Warning: Invalid argument supplied for foreach() in taxonomy_field_presave() (line 1647 of /var/www/saasmax/trunk/modules/taxonomy/taxonomy.module).

PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'E' for column 'field_u_organisation_tid' at row 1: INSERT INTO {field_data_field_u_organisation} (entity_type, entity_id, revision_id, bundle, delta, language, field_u_organisation_tid) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => node [:db_insert_placeholder_1] => 145 [:db_insert_placeholder_2] => 147 [:db_insert_placeholder_3] => user [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => und [:db_insert_placeholder_6] => E ) in field_sql_storage_field_storage_write() (line 425 of /var/www/saasmax/trunk/modules/field/modules/field_sql_storage/field_sql_storage.module).

Note : The field is not selected as required.

So i think it is a problem with subform.
Plz Help

Thanks in Advance

Comments

casey’s picture

Status: Active » Fixed

Module improved a lot since then. If you still are using it and it still doesn't work, please re-open this issue. For now I consider it fixed.

Status: Fixed » Closed (fixed)

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