Warning: Undefined array key "audience" in Drupal\facets_summary\FacetsSummaryManager\DefaultFacetsSummaryManager->build()

Created on 5 July 2023, over 1 year ago
Updated 26 June 2024, 5 months ago

Problem/Motivation

Getting below warning in website which is using facets module in Drupal 9.
Warning: Undefined array key "audience" in Drupal\facets_summary\FacetsSummaryManager\DefaultFacetsSummaryManager->build() (line 123 of modules\contrib\facets\modules\facets_summary\src\FacetsSummaryManager\DefaultFacetsSummaryManager.php)

Steps to reproduce

It is pointing to this code in DefaultFacetsSummaryManager.php

foreach ($facets as $facet) {
$show_count = $facets_config[$facet->id()]['show_count'];
$results = array_merge($results, $this->buildResultTree($show_count, $facet->getResults()));
}

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs work

Version

2.0

Component

Facet summary

Created by

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

Comments & Activities

Production build 0.71.5 2024