Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
admin/config/search/apachesolr/settings/acquia_search_server_1/edit
When I check "Make this Solr search environment multisite capable" and save and edit, the checkbox is not checked. However, the setting does get saved to the DB.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2236045-5.patch | 908 bytes | lokapujya |
Comments
Comment #1
lokapujyaComment #2
Dave ReidThis doesn't work. The apachesolr_environment_variable_get() clearly expects an environment ID as the first parameter, not an environment object.
Comment #3
lokapujyaSure. But, in my setup, the line before that:
$environment = reset($form_state['build_info']['args']);
gives me the environment ID, not an environment object.
Comment #4
lokapujyaMaybe the variable name should be changed to $env_id. Possibly, at some point $environment was an object. I'm using apachesolr version 1.6 and $environment is just the ID.
Comment #5
lokapujyaSomething like this.
Comment #6
shahinam CreditAttribution: shahinam commented#5 works very well.
Comment #7
Dave ReidActually I see what is the issue here. The patch in https://drupal.org/node/1827868#comment-7941799 was committed to 7.x-1.x which changes the menu arguments for the settings path and causes this regression. This was reverted prior to the 7.x-1.6 release of the Apache Solr module. You just need to update to the latest version (of the ApacheSolr module) and then this is resolved.
Comment #8
shahinam CreditAttribution: shahinam commentedYup, I upgraded to 7.x-1.6 and it fixes the problem.
Thanks!