Warning: foreach() argument must be of type array|object, null given in SolrSearch->getFacetsData()

Created on 2 January 2024, 12 months ago
Updated 29 February 2024, 10 months ago

Problem/Motivation

When executing a solrSearch query, a warning appears: Warning: foreach() argument must be of type array|object, null given in Drupal\graphql_search_api_solr\Plugin\GraphQL\DataProducer\SearchApi\SolrSearch->getFacetsData() (Line 208 in graphql_search_api_solr/src/Plugin/GraphQL/DataProducer/SearchApi/SolrSearch.php)

Steps to reproduce

Execute any solrSearch query without using facets at all.

Proposed resolution

See Patch/MR

Remaining tasks

-

User interface changes

-

API changes

-

Data model changes

-

๐Ÿ› Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany daveiano

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024