Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When I installed the newer release with the latest Apachesolr 7.x-1.8 it throws hundreds per search of this php warning:
Warning: in_array() expects parameter 2 to be array, null given in apachesolr_autocomplete_suggest() (line 508 of ~/sites/all/modules/apachesolr_autocomplete/apachesolr_autocomplete.module).
This was caused by a missing initialization of variable $words
in apachesolr_autocomplete_get_stopwords()
.
Comment | File | Size | Author |
---|---|---|---|
#2 | apachesolr_autocomplete_2628364.patch | 433 bytes | a.sopko |
Comments
Comment #2
a.sopkoit's because you don't have any stopwords in your solr configuration,
here patch
Comment #3
DamienMcKennaPlease don't forget to set the issue status to "needs review" when you upload a patch :)
Comment #4
DamienMcKennaThis is a very simple patch that solves the problem.
Comment #5
blauerberg CreditAttribution: blauerberg commented#2 works for me, thanks.
Comment #6
parasolx CreditAttribution: parasolx commented#2 also solve the problem for me.
Comment #8
janusman CreditAttribution: janusman at Acquia commentedCommitted!
Comment #10
donquixote CreditAttribution: donquixote as a volunteer commentedMention apachesolr_autocomplete_get_stopwords() in the issue summary for better findabilty.
Change issue title for better findability.
Comment #11
donquixote CreditAttribution: donquixote as a volunteer commentedComment #12
donquixote CreditAttribution: donquixote as a volunteer commented@janusman: Are you planning to release this fix in a tagged version?
Comment #13
donquixote CreditAttribution: donquixote as a volunteer commentedOh and thanks for the fix :)