getOnlyVisibleWhenFacetSourceIsVisible() on null error in DefaultFacetManager

Created on 7 January 2022, over 3 years ago
Updated 11 March 2025, about 1 month ago

Problem/Motivation

Receive error logged in normal facet processing with Facets cached externally (via Redis):

Error: Call to a member function getOnlyVisibleWhenFacetSourceIsVisible() on null in Drupal\Facets\FacetManager\DefaultFacetManager->build() (line 259 of /var/www/html/modules/contrib/facets/src/FacetManager/DefaultFacetManager.php)

Proposed resolution

Supplying proposed patch, which handles a miss on the cache of facets.

🐛 Bug report
Status

Closed: outdated

Version

1.8

Component

Code

Created by

🇨🇦Canada jmdeleon

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.

  • 🇧🇪Belgium borisson_ Mechelen, 🇧🇪

    Because this is a static cache, it's impossible in my eyes for this to happen. I would like to have more information on this issue, but closing it as outdated for now, feel free te reopen with extra information if it still happens.

Production build 0.71.5 2024