Hi,
I find this error in the new branch 6.3-x
@ function apachesolr_field_name_map().
cause an foreach(apachesolr_entity_fields('nore') as $field_nm => $nodefields) { ...
I just did git clone --recursive --branch 6.x-3.x http://git.drupal.org/project/apachesolr.git
PS: I look for this error after create this issue. Sorry if I recreate one did not find it.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | offset-as-an-array-1630222-2.patch | 523 bytes | basvredeling |
| #1 | offset-as-an-array-1630222-1.patch | 2.04 KB | killua99 |
Comments
Comment #1
killua99 commentedSome can see this "patch"
Comment #2
basvredelingThis is a result of the patch in #1494576: Taxonomy facets
It's an issue of proper array indexing. Attached patch should solve this. The patch from #1 just catches the error but doesn't solve the issue that taxonomy vocabularies aren't handled by the latest apachesolr 6.x-3.x-dev
Comment #3
killua99 commentedYeah, thats the problem. Thanks for take a look at this issue!
Comment #4
basvredelingIt's a small fix and it's been confirmed by another community member. I'd say RTBC.
Comment #5
nick_vhSo, which of the patches should I commit, both?
Comment #6
killua99 commented#1630222-2: Fatal error: Cannot use string offset as an array in /sites/all/modules/contrib/apachesolr/apachesolr.module on line 1698
Comment #7
nick_vhClosing this one, handling it in #1588256: Warning: Invalid argument supplied for foreach() in apachesolr_entity_update() (line 1766 of /apachesolr/apachesolr.module)