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
Comment #1
donquixote CreditAttribution: donquixote commentedI can confirm the bug and the fix.
Comment #2
Taxoman CreditAttribution: Taxoman commentedComment #3
Kars-T CreditAttribution: Kars-T commentedPlease provide a patch for this issue.
Comment #4
Wim LeersPlus, has it been confirmed that the root cause doesn't lie with Taxonomy Manager? (i.e. maybe it does something wrong with forms)
Comment #5
adrien.felipe CreditAttribution: adrien.felipe commentedThe 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.
Comment #6
Risha CreditAttribution: Risha commentedHello, 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!
Comment #7
stefan.r CreditAttribution: stefan.r commented#1162204: Recoverable fatal error when node form processed programmatically