Things in Trash break Search

Created on 21 October 2024, 25 days ago

Problem/Motivation

When you delete something and it moves to the Trash, it is still in the search index. If you search for any term that appears on that page, it will break with an "unexpected error."

Steps to reproduce

Delete something so that it moves into the Trash. Search (/search/node) for a word on that page, for example one of the words in the title. Assuming this page appears on the first page of the search results, you will get a website experienced an error. The Drupal log will say "Call to a member function getTranslation() on null." "null" being the key word here.

It looks like search will load that node because it's in the search index, but then cannot display it because it has been moved into the Trash.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ethangeorgi

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