- Issue created by @Markiz
- Status changed to Closed: cannot reproduce
22 days ago 2:16pm 12 March 2025
Hello, thank You for great module.
After Upgrade from facets 1.8 to 2.0.6 (also to 2.dev) I have this PHP error. PHP is 8.1 and 8.2. I want to upgrade Drupal 9 to 10, but it is not possible now, I cannot go to facets 2.0. I am surprised I did not find noone else here with this problem. Thank You. I cleared the cache, of course. Version 3 also does not work.
The website encountered an unexpected error. Please try again later.
TypeError: Drupal\facets\Entity\Facet::isMissing(): Return value must be of type bool, null returned in Drupal\facets\Entity\Facet->isMissing() (line 1069 of modules/contrib/facets/src/Entity/Facet.php).
Drupal\facets\Entity\Facet->isMissing() (Line: 96)
Drupal\facets\QueryType\QueryTypePluginBase->getFacetOptions() (Line: 41)
Drupal\facets\Plugin\facets\query_type\SearchApiString->execute() (Line: 167)
Drupal\facets\FacetManager\DefaultFacetManager->alterQuery(Object, 'search_api:views_page__catalogue__page_1') (Line: 51)
Drupal\facets\EventSubscriber\SearchApiSubscriber->queryAlter(Object, 'search_api.query_pre_execute', Object)
call_user_func(Array, Object, 'search_api.query_pre_execute', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'search_api.query_pre_execute') (Line: 596)
Drupal\search_api\Query\Query->preExecute() (Line: 541)
Drupal\search_api\Query\Query->execute() (Line: 621)
Drupal\search_api\Plugin\views\query\SearchApiQuery->execute(Object) (Line: 1431)
Drupal\views\ViewExecutable->execute(NULL) (Line: 1459)
Drupal\views\ViewExecutable->render() (Line: 199)
Drupal\views\Plugin\views\display\Page->execute() (Line: 1635)
Drupal\views\ViewExecutable->executeDisplay('page_1', Array) (Line: 81)
Drupal\views\Element\View::preRenderViewElement(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See
https://www.drupal.org/node/2966725 →
', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 243)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Active
2.0
Code