Closed (duplicate)
Project:
Apache Solr Search
Version:
7.x-1.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Feb 2012 at 16:21 UTC
Updated:
15 May 2014 at 16:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
nick_vhComment #2
nick_vhFixed for d7
Comment #3
nick_vhComment #4
nick_vhCommitted for 6.x-3.x
Comment #5
nick_vhComment #6
asgorobets commentedI guess the issue is back since commit 1f7d222d in 7.x-1.x.
This part is looping a wrong array:
Should loop throw $mappings[$key].
Comment #7
sergiu.savva commentedWorks like a charm. Thank you asgorobets
Comment #8
heacu commentedIndeed, I just noticed this myself. Still true of 7.x-1.6.
Comment #9
mkalkbrenner#6 is RTBC
Comment #11
asgorobets commentedRerolling #6
Comment #12
asgorobets commentedComment #13
mkalkbrennerStill RTBC ;-)
Comment #14
gbirch commentedThis patch does not fix all problems. I still get:
Warning: array_keys() expects parameter 1 to be array, null given in apachesolr_get_field_mappings() (line 2193 of .../sites/all/modules/apachesolr/apachesolr.module).
Could fix this by replacing
with
elseif (is_array($mappings[$key])) {at line 2192
I apologize for not having time right how to roll a patch.
Comment #15
mkalkbrennerThis issue has been fixed in dev by #2237113: Bug in apachesolr_get_field_mappings when referencing the field mappings array