Can't save facet config

Created on 8 December 2022, almost 2 years ago
Updated 10 April 2024, 8 months ago

After upgrading from Drupal 8.9.2 to 9.49, I can't save the form at admin/config/search/facets

The error is:
TypeError: array_keys(): Argument #1 ($array) must be of type array, string given in array_keys() (line 330 of /var/www/staging/web/modules/contrib/facets/src/FacetListBuilder.php)

I was getting this error with 1.8, and am still seeing the error after upgrading to 2.0.5.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States arnoldbird

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    So I tested on 2.x and 3.x both and was not able to reproduce this error.

    If still seeing on the latest version please reopen.

  • πŸ‡«πŸ‡·France erwangel

    Same problem here, with facet 3.0.0-beta1, search_api_solr 4.3.3 and drupal 10.2.6. Unable to save the form at admin/config/search/facets, getting wsod with the message above

    Begging of the debug trace:
    Drupal\facets\FacetListBuilder->submitForm()
    call_user_func_array() (Line: 129)
    Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 67)
    Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 597)
    Drupal\Core\Form\FormBuilder->processForm() (Line: 325)
    Drupal\Core\Form\FormBuilder->buildForm() (Line: 224)
    Drupal\Core\Form\FormBuilder->getForm() (Line: 94)
    Drupal\Core\Config\Entity\DraggableListBuilder->render() (Line: 23)
    Drupal\Core\Entity\Controller\EntityListController->listing()
    call_user_func_array() (Line: 123)

    There are two sources relying to View Solr Search (page, and block), there is not so much to configure a part the Filter key. Fields are present by default in solr index but I see no way to add a facet block in block layer.

  • Status changed to Active about 2 months ago
  • πŸ‡§πŸ‡ͺBelgium StryKaizer Belgium

    Error happens when no facets exist yet.

  • πŸ‡§πŸ‡ͺBelgium StryKaizer Belgium
  • πŸ‡§πŸ‡ͺBelgium StryKaizer Belgium
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024