Everything was working fine untill the last upgrades, the Taxonomy manager does not let me edit terms as I have this Ajax error:

ResponseText: Recoverable fatal error: Argument 1 passed to drupal_array_set_nested_value() must be an array, null given, called in ../sites/all/modules/contrib/hierarchical_select/hierarchical_select.module on line 810 and defined in drupal_array_set_nested_value() (line 6510 of ../includes/common.inc).

I have solved it by adding this on line 810 of hierarchical_select.module:

  isset($form_state['input']) or $form_state['input'] = array(); // My fix
  drupal_array_set_nested_value($form_state['input'], $element['#array_parents'], array());

I don't know if it might have bad repercussions, but it solved my issue.

My versions:
Drupal core | 7.20
Hierarchical Select | 7.x-3.0-alpha5+9-dev
Taxonomy Manager | 7.x-1.0-rc2

Comments

donquixote’s picture

I can confirm the bug and the fix.

Taxoman’s picture

Version: 7.x-3.0-alpha5 » 7.x-3.x-dev
Kars-T’s picture

Status: Active » Needs work

Please provide a patch for this issue.

Wim Leers’s picture

Title: Hierarchical select breaks Taxonomy manager module » Hierarchical Select + Taxonomy Manager module compatibility

Plus, has it been confirmed that the root cause doesn't lie with Taxonomy Manager? (i.e. maybe it does something wrong with forms)

adrien.felipe’s picture

The form is not set indeed, so it's probably not Hierarchical Select module issue. But Hierarchical Select should test the form before using it, just to avoid this kind of situations.

Risha’s picture

Hello, i can confirm that the fix is working ok and the ajax error is gone when using Hierarchical select and Taxonomy manager module. Big thanks!

stefan.r’s picture

Issue summary: View changes
Status: Needs work » Closed (duplicate)