Closed (fixed)
Project:
Apache Solr Multilingual
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2013 at 23:59 UTC
Updated:
17 Apr 2013 at 19:45 UTC
I receive the following two errors after performing a search query:
Notice: Undefined index: custom_settings in apachesolr_multilingual_apachesolr_query_alter() (line 391 of .../apachesolr_multilingual/apachesolr_multilingual.module).
Notice: Undefined index: custom_settings in apachesolr_multilingual_form_apachesolr_search_custom_page_search_form_alter() (line 469 of .../apachesolr_multilingual/apachesolr_multilingual.module).
The first error occurs because there is no check to see whether $search_page['settings']['custom_settings'] is set (error at 391). Similarly, the second error is related because 'custom_settings' is not set at the check $search_page['settings']['custom_settings'] on line 469.
Within the last few months, function apachesolr_multilingual_apachesolr_query_alter($query) was rewritten. The previous version did not have this problem.
Note: I have 7.x-1.x-dev (April 11) installed for both apachesolr and apachesolr_multilingual.
Comments
Comment #0.0
jongagne commentedadded additional note
Comment #1
mkalkbrennerOpen the settings forms of all your search pages and save them after checking the multilingual settings.
I guess, the notices will go away and auto language filtering will work again.
Please report if it works. In that case I'll think about an update function.
Comment #2
jongagne commentedUnfortunately, it did not resolve the problem. Is there anything else you would like me to try?
Comment #3
mkalkbrennerYes, update to latest dev and repeat the steps. I committed two fixes:
http://drupalcode.org/project/apachesolr_multilingual.git/commit/1f671ce
http://drupalcode.org/project/apachesolr_multilingual.git/commit/5d9b29e
(The problem was, that I still had some $custom_settings in my database which hided the error.)
Comment #4
mkalkbrennerComment #5
jongagne commentedThe first opportunity I'll have to check it is in about a day and a half, so I'll check it then. Cheers
Comment #6
jongagne commentedTested and issue resolved. Thank you for your continuous contributions.
Comment #6.0
jongagne commentedrefractoring