Fatal error: "image" is an invalid render array key

Created on 3 April 2024, 3 months ago
Updated 27 April 2024, about 2 months ago

Problem/Motivation

When using the ds_switch_view_mode module, the layout preview fallback image is a URL rather than a proper render array element.

Steps to reproduce

Log in as a user with permission to switch view mode. Edit content that is set to a layout with no preview icon. Fatal error should be shown.

Proposed resolution

Use similar image preview markup to what is used when a layout is not set.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States greenSkin

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