Error when search index tries to render a Event Block in the Search page

Created on 8 April 2024, 8 months ago
Updated 16 May 2024, 6 months ago

Problem/Motivation

From logs:

Error while trying to render item entity:node/660:en with view mode default for search index Search content: Call to a member function isEmpty() on null in Drupal\ws_event\Plugin\Block\EventContactsBlock->build() (line 87 of /var/www/docroot/modules/contrib/ws_event/src/Plugin/Block/EventContactsBlock.php).

Steps to reproduce

Setup the search index with the steps described in the link below for the Layout builder integration.
https://ds-docs.y.org/docs/development/install-solr-site-search-for-open...

Proposed resolution

Check if the Node has fields before the rendering.

πŸ› Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

πŸ‡§πŸ‡·Brazil andre.bonon

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