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

Created on 2 January 2024, 6 months ago
Updated 29 February 2024, 4 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.69.0 2024