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

jongagne’s picture

Issue summary: View changes

added additional note

mkalkbrenner’s picture

Open 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.

jongagne’s picture

Unfortunately, it did not resolve the problem. Is there anything else you would like me to try?

mkalkbrenner’s picture

Yes, 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.)

mkalkbrenner’s picture

Status: Active » Needs review
jongagne’s picture

The first opportunity I'll have to check it is in about a day and a half, so I'll check it then. Cheers

jongagne’s picture

Status: Needs review » Closed (fixed)

Tested and issue resolved. Thank you for your continuous contributions.

jongagne’s picture

Issue summary: View changes

refractoring