Block code breaks when recommended node does not exist

Created on 27 May 2024, about 1 month ago
Updated 10 June 2024, 19 days ago

Problem/Motivation

Page shows WSOD due to exception in block code.

Steps to reproduce

  • Place the recommended block in a page.
  • Ensure recommnded content is shown.
  • Delete a node which is shown in the block.
  • Rebuild cache and reload page.
  • Page breaks.

Proposed resolution

In AIRecommendContentBlock code, add check here for empty $node.

Remaining tasks

NA

User interface changes

NA

API changes

NA

Data model changes

NA

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Vivek Panicker Kolkata

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