Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Just encountered a bug in hierarchical_select.module 7.x-3.0-alpha1 in the function _hierarchical_select_hierarchy_enforce_deepest on line 1937.
After checking I discovered that the bug is present in the latest dev as well (line 1936 in dev)
The error occurred during a request for child fields.
The error was message was
Strict warning: Only variables should be passed by reference
using php 5.3.5
I was able to fix the error by changing line 1937 from:
$first_child = reset(array_keys($children));
</code
to the lines:
<code>
$keys = array_keys($children);
$first_child = reset($keys);
Comments
Comment #1
Wim LeersCommitted, with a minor change: http://drupalcode.org/project/hierarchical_select.git/commit/e606956.