TypeError: Cannot assign null to property ResultSet::$langcode of type string

Created on 2 January 2024, 11 months ago
Updated 29 February 2024, 9 months ago

Problem/Motivation

When executing a solrSearch query, an Error appears: TypeError: Cannot assign null to property Drupal\graphql_search_api_solr\Plugin\GraphQL\Wrappers\ResultSet::$langcode of type string in Drupal\graphql_search_api_solr\Plugin\GraphQL\Wrappers\ResultSet->__construct() (Zeile 36 in graphql_search_api_solr/src/Plugin/GraphQL/Wrappers/ResultSet.php).

Steps to reproduce

Execute any solrSearch query without multilingual content on the site.

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