Using commerce kickstart distribution I get this error when saving commerce order:

I added some dependencies in the billing profile fields.

Recoverable fatal error: Argument 2 passed to drupal_array_get_nested_value() must be of the type array, null given, called in /Applications/MAMP/htdocs/example.com/sites/all/modules/conditional_fields/conditional_fields.module on line 764 and defined en drupal_array_get_nested_value() (línea 6819 de /Applications/MAMP/htdocs/example.com/includes/common.inc).

Comments

kenorb’s picture

kenorb’s picture

Hit this again on some multipage form:

Recoverable fatal error: Argument 2 passed to drupal_array_get_nested_value() must be of the type array, null given, called in sites/all/modules/contrib/conditional_fields/conditional_fields.module on line 1041 and defined in drupal_array_get_nested_value() (line 6786 of includes/common.inc).

Affected code:

    // We have the parents of the field, but depending on the entity type and
    // the widget type, they may include additional elements that are actually
    // part of the value. So we find the depth of the field inside the form
    // structure and use the parents only up to that depth.
    $dependee_parents_keys = array_flip($dependee_parents);
    $dependee_parent = drupal_array_get_nested_value($form, array_slice($dependee_parents, 0, $dependee_parents_keys[$dependee]));
kenorb’s picture

kenorb’s picture