Attempt to read property "value" on null on field_location_phone

Created on 5 April 2024, 8 months ago
Updated 9 April 2024, 8 months ago

Problem/Motivation

In the search page the following error happens:
Attempt to read property "value" on null in Drupal\y_camp\Plugin\Block\CampInfoBlock->build() (line 99 of modules/contrib/y_camp/src/Plugin/Block/CampInfoBlock.php).

Steps to reproduce

Enable the search API database index.
Go to the search API fields tab and edit the rendered HTML field.
Select all the displays that have LB enabled (https://ds-docs.y.org/docs/development/install-solr-site-search-for-open...)
Re-index.
Create a landing page (with LB) and add the search content views block
Search by Camp.

Proposed resolution

Check if the block is rendered in a node of the type camp.

🐛 Bug report
Status

Needs review

Version

1.1

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