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.
apachesolr_multisitesearch_apachesolr_delete_by_query_alter() should be defined as passing the $query variable by reference. Given that the $query variable is a string and not an object, we must declare that it should be passed by reference. The apachesolr documentation is incorrect, but an issue (#1996366: documenation for hook_apachesolr_delete_by_query_alter should define $query as being passed by reference) has been raised to fix that.
The attached patch fixes the issue for apachesolr_multisitesearch.
Comment | File | Size | Author |
---|---|---|---|
apachesolr_multisitesearch-delete_by_query_alter-UNKNOWN-0.patch | 649 bytes | sdrycroft | |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedthanks, committed to 7.x and 6.x-3.x