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.
I'm getting this error:
Notice: Undefined property: apachesolr_views_query::$group_operator in apachesolr_views_query->execute() (line 83 of /Applications/MAMP/htdocs/sandbox/docroot/sites/all/modules/apachesolr_views/apachesolr_views_query.inc).
Also, I noticed that on line 30, there are a couple of minor documentation errors:
* Neede for grouppin of query conditions.
should probably be:
* Needed for grouping of query conditions.
Comment | File | Size | Author |
---|---|---|---|
#1 | set_group_operator-1761432-1.patch | 457 bytes | theapi |
Comments
Comment #1
theapi CreditAttribution: theapi commentedHere's a patch to set the default group_operator value and stop the php warning.
views_plugin_query (the class that is extended by apachesolr_views_query) has the function set_group_operator() but no default for the variable.
Comment #2
heaths1 CreditAttribution: heaths1 commentedNovice input: Applied #1 and the warning went away, but not smart enough to know if there was any other impact.
Comment #3
Mac_Weber CreditAttribution: Mac_Weber commentedWorks fine for me. Thanks PeterC!
Comment #4
GaxZE CreditAttribution: GaxZE commentedWorks for me too.
Nice one.
Comment #5
loopduplicateThanks for testing everyone. Setting this to 'needs review' so that the Drupal.org testbot will pick it up and test it. If it passes, then we should set this back to RTBC, right? Cheers, Jeff
Comment #6
Mac_Weber CreditAttribution: Mac_Weber commentedby now this module cannot be tested by the test bot
Comment #6.0
Mac_Weber CreditAttribution: Mac_Weber commentedminor spelling error
Comment #7
MiroslavBanov CreditAttribution: MiroslavBanov commentedWorks on my end. +1 to commit this.
Comment #8
buddaIs there any reason why this 1 line variable declaration can't be committed to the dev branch ready for a new release ? It's been over two years since the patch was submitted and tested by the community.
Comment #9
rutiolmaThis patch should be commited.
Comment #11
MiroslavBanov CreditAttribution: MiroslavBanov commentedCommitted, thanks.