Title: Plugin not working with groups
Last modified: August 31, 2016

---

# Plugin not working with groups

 *  Resolved [ximkronos](https://wordpress.org/support/users/ximkronos/)
 * (@ximkronos)
 * [10 years ago](https://wordpress.org/support/topic/plugin-not-working-with-groups/)
 * Hello,
 * I tried to use the groups plugin but it’s not working.
 * When i search for a word, the page returns a php fatal error :
    `"Uncaught exception'
   Solarium\Exception\InvalidArgumentException with message 'A filterquery must 
   have a unique key value within a query'"`
 * The problem seems to come from the file wpsolr-search-engine\vendor\solarium\
   solarium\library\Solarium\QueryType\Select\Query\Query.php in the function addFilterQuery.
 * When I search for a term, this function is called 2 times with the same parameters,
   thus trying to add filter query for the groups, throwing an exception the second
   time because the key already exists.
 * [https://wordpress.org/plugins/wpsolr-search-engine/](https://wordpress.org/plugins/wpsolr-search-engine/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years ago](https://wordpress.org/support/topic/plugin-not-working-with-groups/#post-7444762)
 * The WPSOLR groups extension is a paid extension.
 * Support is done with the zendesk chat at [http://www.wpsolr.com](http://www.wpsolr.com)
 *  [yjajkiew](https://wordpress.org/support/users/yjajkiew/)
 * (@yjajkiew)
 * [10 years ago](https://wordpress.org/support/topic/plugin-not-working-with-groups/#post-7444805)
 * Hello,
 * It seems that the problem comes from the class PluginGroups being constructed
   twice, so registering twice to the action “solarium query” so adding the filterQuery
   twice.
 * Can’t find why though…
 *  Thread Starter [ximkronos](https://wordpress.org/support/users/ximkronos/)
 * (@ximkronos)
 * [10 years ago](https://wordpress.org/support/topic/plugin-not-working-with-groups/#post-7444825)
 * By going up in the error stack, i found that it’s the WpSolrExtensions class (
   it construct the PluginGroups) that is called twice.
    This class seems to be 
   like a singleton, constructed by his “load()” method. But since the __construct()
   method is not private, it is manually called by the WPSolrSearchSolrClient class(
   classes/solr/wpsolr-search-solr-client.php) instead of the static load().
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/plugin-not-working-with-groups/#post-7444906)
 * Fixed in WPSOLR 9.7

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Plugin not working with groups’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpsolr-search-engine_b2dbdc.svg)
 * [WPSOLR - Elasticsearch and Solr search](https://wordpress.org/plugins/wpsolr-search-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpsolr-search-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpsolr-search-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpsolr-search-engine/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/plugin-not-working-with-groups/#post-7444906)
 * Status: resolved