I'm getting the following errors when using hierarchical select in conjunction with search_api and global filter:

  • Notice: Array to string conversion in _hierarchical_select_process_calculate_selections() (line 1185 of ...\sites\all\modules\contrib\hierarchical_select\hierarchical_select.module).
  • Notice: Array to string conversion in _hierarchical_select_process_calculate_selections() (line 1185 of ...\sites\all\modules\contrib\hierarchical_select\hierarchical_select.module).
  • Warning: Illegal offset type in isset or empty in taxonomy_get_children() (line 1076 of ...\modules\taxonomy\taxonomy.module).
  • Warning: Illegal offset type in taxonomy_get_children() (line 1088 of ...\modules\taxonomy\taxonomy.module).
  • Warning: Illegal offset type in isset or empty in taxonomy_get_children() (line 1091 of ...\modules\taxonomy\taxonomy.module).

So I don't really know if this belongs in the HS queue or Global filter's queue...It seems that by using global filter the underlying function "_hierarchical_select_process_calculate_selections()" is called and doesn't receive a flat list of id's in its array but rather the hsid and the lists of id's in a sub array. See debug screenshot.

Do you think this is something that is solvable by HS or do I need to take this up with global filter? Everything is working fine it's just these warnings I'm getting. Probably because global filter is sending wrong values, but shouldn't HS choke on that instead?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alexverb created an issue. See original summary.

alexverb’s picture

Status: Active » Needs review
FileSize
586 bytes

It seems this issue belongs in Global Filter's issue queue. But I'm proposing this small patch to avoid having these notices displayed when wrong values are entered. I don't know if this is the correct way to go but at least it keeps the watchdog clean.

Other than that this issue can be marked as closed...

alexverb’s picture

  • stefan.r committed 595ba7b on 7.x-3.x authored by alexverb
    Issue #2622314 by alexverb: Array to string conversion (when used with...
stefan.r’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.