After upgrading to the latest version of faceted search it stopped working. I can only get faceted search to work again by disabling biblio_facets.

These errors turn up in the log files:

preg_match() expects parameter 2 to be string, array given in /data/sites/onderzoeksbalans/modules/search/search.module op regel 619.

Greetings,
Koen Van Daele

Comments

David Lesieur’s picture

Could it be that you're using Faceted Search "dev" rather than 0.21 ?

Kador’s picture

No, this is what the Drupal modules page says:

Faceted Search
5.x-0.21
API for performing faceted searches.
Afhankelijk van: Search (ingeschakeld)
Vereist voor: Author Facet (ingeschakeld), Biblio Facets (uitgeschakeld), Biblio Type Facet (uitgeschakeld), Content Type Facet (uitgeschakeld), Date Authored Facet (uitgeschakeld), Date Facets Format (uitgeschakeld), Faceted Search UI (ingeschakeld), Taxonomy Facets (ingeschakeld)

Helmut Neubauer’s picture

Today I updated Faceted Search from 0.11 to 0.21. In my environment I can't choose biblio facets now. They are not there although the biblio facet moduls are enabled and I set the biblio facets in administer faceted search. I tried the 0.20 version too. Same problem.
I didn't have an error message or warning.

Kador’s picture

Hello,

is there any progress on this?

Greetings,
Koen

zhahai’s picture

Same problem.

What I've decoded so far:

faceted_search.inc : function faceted_search() goes through modules invoking hook (modulename)_faceted_search_collect and accumulating text as $text;

it will call biblio_facets.module : biblio_facets_faceted_search_collect() which will return
an array rather than a string **problem?**

the $text containing an array will be passed as final argument to function taxonomy_facets.module : taxonomy_facets_faceted_search_collect() , thence to search.module : search_query_extract, where it will be found to be an array rather than a string, triggering this error.

I think the error occurs at **problem?** point above - returning an array rather than a string. But I'm not at all familiar with the internals of either module, and I don't know which one may have changed.

Please help!

David Lesieur’s picture

Status: Active » Fixed

The new Biblio Facets 1.0 beta1 (just released) should work with Faceted Search 1.0 beta1 (also just released).

Anonymous’s picture

Status: Fixed » Closed (fixed)

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