I'm using the dev version and always get this error message on any search:
warning: Invalid argument supplied for foreach() in /my/directory/structure/httpdocs/sites/all/modules/apachesolr/apachesolr.module on line 1190.
It's fine on the rc1 version but loving the CCK fields being indexed hence using dev
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 608014.patch | 1.04 KB | robertdouglass |
| #1 | apachesolr-module-invalid-arg.patch | 901 bytes | jtsnow |
Comments
Comment #1
jtsnow commentedCCK fields can be indexed using the 6.x-1.0 branch. Anyway, here is a quick band-aid fix for the problem.
Comment #2
Scott Reynolds commentedbest to follow coding standards and indent.
Comment #3
robertdouglass commentedLooks ok for 6.2.
Comment #4
robertdouglass commentedLet's confirm it's not an issue in the other branches.
Comment #5
claudiu.cristeaI'm a little bit confused. 6.x-2.x shows that $params['fq'] is a 2 level nested array.
But in 5.x-2.x (6.x-1.x) seems to be only a 1 level deep. In apachesolr_search.module is handled:
Digging a little bit in 6.x-2.x-dev I found that next part is missed in
apachesolr_modify_query()from 6.x-1.x and 5.x-2.x which seems to be critical on subqueries....This part transform $param['fq'] from a 2 level to an one level array.
Discussion needed...
Comment #6
robertdouglass commentedOk - that's all related to OR facets. So let's not backport this as it's pretty complicated and disruptive.