Nodequeue is working fine, but any time that I attempt to use Apache Solr, I get the following error:

Warning: Missing argument 3 for nodequeue_apachesolr_modify_query(), called in /var/www/sites/all/modules/apachesolr/apachesolr.module on line 1514 and defined in nodequeue_apachesolr_modify_query() (line 408 of /var/www/sites/all/modules/nodequeue/nodequeue.module).

Apache Solr does return a proper result set.

For the time being I just commented out the Solr hook.

Comments

ezra-g’s picture

Title: Apache Solr » Missing argument 3 for nodequeue_apachesolr_modify_query()

Seems we need to update per #1007860: API fix for hook_apachesolr_modify_query. Thanks for the report :) !

brenk28’s picture

StatusFileSize
new1 KB

Here is an attempt for a patch.

setvik’s picture

Status: Active » Needs review
StatusFileSize
new1.03 KB

Sweet! Thanks for the patch. Worked great.

Added in the class hint (DrupalSolrQueryInterface) and rerolled the patch

keithm’s picture

Applying #3 produced another warning, this time on argument 2. Added default to fix it.

amateescu’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.05 KB

Tested this and it's ready to fly :)

Rerolled #4 because it applied with an offset.

amateescu’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.