Cannot edit facets on Drupal 10.1

Created on 14 July 2023, 12 months ago
Updated 10 April 2024, 3 months ago

Problem/Motivation

Update site to Drupal 10.1
Try to edit Facet
Error: Call to a member function getType() on null in Drupal\facets\Plugin\facets\processor\BooleanItemProcessor->supportsFacet() (line 107 of /var/www/html/web/modules/contrib/facets/src/Plugin/facets/processor/BooleanItemProcessor.php).

This also prevents editing a view that uses that facet.
Drupal\facets\Exception\InvalidQueryTypeException: No available query types were found for facet Color in Drupal\facets\Plugin\facets\facet_source\SearchApiDisplay->getQueryTypesForFacet() (line 312 of /var/www/html/web/modules/contrib/facets/src/Plugin/facets/facet_source/SearchApiDisplay.php).

At first I thought it was all facets, but it is just this one.

Unfortunately I had to delete the broken facet to move on so it will be difficult to test.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇺🇸United States nicxvan

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024