when change the number of field values, get an error

Comments

dimwolf’s picture

Getting the same error is more than one value is selected.

jan_v’s picture

Also getting the same fatal error, only in v 7.x-1.3 line 863 .

clearing cache with drush doesn't help.

enricotersi’s picture

I've the same error when i add the facet block in the view index page
a simple facet of taxonomy terms

katsivelisp’s picture

Same here!

katsivelisp’s picture

Well, it seems that it worked from me after I disabled and deleted all facets, deleted and re-created the index and enabled the facets again. Of course I cleared the cache a couple of times in between. I hope it works for you guys as well.

sebastien m.’s picture

We encountered same issue.
Here is a fix which force hook to be loaded before ctools try to load plugins.

yatendrasingh121’s picture

Corrected paths of patch attached in #6

sebastien m.’s picture

My fault, I included paths from my project.
Thanks

jtronchon’s picture

Status: Active » Needs review

Hi,

#7 works well against 7.x-1.5+2-dev. Can anyone else confirm ?

The last submitted patch, 6: facetapi-fix_ctools_plugin_load-2393363-6.patch, failed testing.

lukasss’s picture

# 7 not working for me

lukasss’s picture

In fact, this error can not be connected to the module facetapi

In my case the bug flew out of the fact that before I used ajax_facets module and to configure facet "Behavior empty facet" exhibited the value offered from this module.

According uselessness module is disabled or even removed (correctly, of course), but it did not change the setting "Behavior empty facet."

They happily changed my own and I could not imagine anything bad.

Then already, bringing in the wrong line in the $ id var_dum mine saw "ajax_facets" and understood.

Including the module, do one of the facets in the settings of the setup was ajax_facets, changed, turned off the unit removed - it worked. Maybe someone and come in handy! Sorry for bad english!

tarasich’s picture

Can confirm that I had this problem because of 'empty_behavior' => 'ajax_facets', value in $settings variable (for one of facets on page), as described lukasss.
Fixed this by resaving facet with new settings.

eugene.ilyin’s picture

Status: Needs review » Postponed (maintainer needs more info)

Is this problem actual? How can I reproduce it?

tarasich’s picture

Hi eugene.ilyin!
Steps to reproduce:
1. Install facetapi and ajax_facets modules.
2. Got to one of facets settings, set Display widget to one provided by Ajax Facets module.
3. Set empty behaviour to Ajax Facets Wrapper (as module recommends)
4. Disable Ajax Facets module
5. Uninstall it.
6. Filter results with other facets to make this facet to be hidden.

eugene.ilyin’s picture

Status: Postponed (maintainer needs more info) » Active

Great explanation. Thank you.
I'll check.

Ouach’s picture

Hi,
If you are in the situation of tarasich #15, the solution that worked for me is:

  1. To go in each facets settings (Home » Administration » Configuration » Search and metadata » Search API, Then click on "Edit" of your problematic index, then clic on the "FACETS" tab then on each "configure display" enabled).
  2. Select "Display text" in the "Empty facet behavior" select.
  3. Enter a text in the "Empty text" wysiwyg textarea.

  4. Clic on "Save configuration" button.
  5. When done for each display settings, open them one by one again and select "Do not display facet" in the "Empty facet behavior" select.
  6. Clic on "Save configuration" button.

  • eugene.ilyin committed 767fd5a on 7.x-1.x
    Issue #2393363 by Sebastien @Actualys, yatendrasingh121, tarasich,...
eugene.ilyin’s picture

I think that the right way is update settings of the facets when the module ajax facets will be disabled.
But this problem can happens with any other module. I think that better to prevent it in module facets.

eugene.ilyin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

danthorne’s picture

Thanks Ouach, save me a lot of time :)

burshyn’s picture

I have the same problem. Uninstalled the module ajax facets BUT forgot to change the value, the behavior in the absence of results!

seonomad’s picture

#17 is work for me! Thanks!