I upgraded from Internationalization 7.x 1.11 to 1.12 and then ran some tests. I attempted to create a Danish translation of a node that was in English and had conditional fields defined. During editing, I noticed that the conditional field dependencies were not enforced in the Danish version. On saving I receive a number of error messages of which the first two are:

Notice: Undefined index: #id i drupal_process_states() (linje 4694 af .../includes/common.inc).
Notice: Undefined index: #language i conditional_fields_dependent_validate() (linje 675 af .../sites/all/modules/conditional_fields/conditional_fields.module).

The last two errors are:

Warning: Invalid argument supplied for foreach() i conditional_fields_evaluate_dependencies() (linje 1004 af .../sites/all/modules/conditional_fields/conditional_fields.module).
Notice: Undefined index: i conditional_fields_evaluate_dependencies() (linje 1025 af .../sites/all/modules/conditional_fields/conditional_fields.module).

The save of the new Danish translation is actually successful and subsequent edits of it and saves do not produce errors. Also, during editing the conditional fields are once again enforced.

I have conditional_fields 7.x 3.0-alpha1+12-dev installed. I am also using Entity Translation 7.x 1.0-beta3. I have tried the fix conditional_fields-08102014.patch from the "Invalid argument" related issue, but got different errors.

I have also applied conditional_fields-fixed_multiple_field_collection_fields-1464950-153.patch from the "Support for multiple..." related issue, but got the errors described in https://www.drupal.org/node/1464950#comment-8668685 of that issue.

Does anyone know what this may be about? I am also entering this issue on the Internationalization list.

Comments

jcory’s picture

jcory’s picture

Version: 7.x-3.0-alpha1 » 7.x-3.x-dev
Issue summary: View changes
Related issues: +#1464950: Support for multiple "Field collection" and "Multifield" fields
Fabioc79’s picture

I have exactly the same issue described by jcory: when I add a new translation I receive a lot of error messages. The first six are the same:

Notice: Undefined index: #id in drupal_process_states() (linea 4757 di ...\includes\common.inc).

Then I have the following block of error messages, repeated six times:

Notice: Undefined index: #language in conditional_fields_dependent_validate() (linea 672 di C:\Users\FABIO\Sites\didando7\sites\all\modules\conditional_fields\conditional_fields.module).

Notice: Undefined index: in conditional_fields_dependent_validate() (linea 672 di C:\Users\FABIO\Sites\didando7\sites\all\modules\conditional_fields\conditional_fields.module).

Notice: Undefined index: in conditional_fields_evaluate_dependencies() (linea 1001 di C:\Users\FABIO\Sites\didando7\sites\all\modules\conditional_fields\conditional_fields.module).

Warning: Invalid argument supplied for foreach() in conditional_fields_evaluate_dependencies() (linea 1004 di C:\Users\FABIO\Sites\didando7\sites\all\modules\conditional_fields\conditional_fields.module).

Notice: Undefined index: in conditional_fields_evaluate_dependencies() (linea 1025 di C:\Users\FABIO\Sites\didando7\sites\all\modules\conditional_fields\conditional_fields.module).

Notice: Undefined index: #language in conditional_fields_dependent_validate() (linea 672 di C:\Users\FABIO\Sites\didando7\sites\all\modules\conditional_fields\conditional_fields.module).

I'm using Conditional fields 7.x-3.0-alpha2 and i18n 1.13.

Can you help me?

Thank you very much,