Error: Call to a member function isActive() on null in Drupal\facets\Plugin\facets\processor\HideOnlyOneItemProcessor->build() (line 27 of /modules/contrib/facets/src/Plugin/facets/processor/HideOnlyOneItemProcessor.php)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jabb created an issue. See original summary.

dermario’s picture

Status: Active » Needs review
Marc DeLay’s picture

Status: Needs review » Reviewed & tested by the community

I arrived here by way of a different bug probably not facet related, but I did experience this particular error because of it.

This works to not crash the page when results are not returned in the correct format. (no isActive method)

  • borisson_ committed 085791b on 8.x-1.x authored by Jabb
    Issue #2991562 by Jabb: Hide facet with 1 option on a date facet results...
borisson_’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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