flexible_image include => drupal_field() causes WSOD (w/o logging an error)

Created on 15 September 2024, 2 months ago
Updated 19 September 2024, about 2 months ago

Problem/Motivation

{{ drupal_field(image_field_name, 'media', image_field_media_id, {type: 'responsive_image', settings: {responsive_image_style: responsive_image_size}})|field_value }}

Causes a WSOD, when logged in (as admin). There is no error in the Drupal log, the values to all drupal_field parameters are present and valid.

In this case the bundle is 'image_text', but it's very likely that card, image, etc. are also affected.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @thomas.frobieter
  • Status changed to Needs work 2 months ago
  • Switching from:
    {{ drupal_field(image_field_name, 'media', image_field_media_id, {type: 'responsive_image', settings: {responsive_image_style: responsive_image_size}})|field_value }}
    to:
    {{ drupal_image(raw_image_path, responsive_image_size, {alt: raw_image_alt}, responsive=true) }}

    fixes the problem. However, we switched to drupal_field for good reasons. So we still need to debug this.

  • Assigned to thomas.frobieter
  • 🇩🇪Germany Anybody Porta Westfalica

    @thomas.frobieter I think we need a backtrace. Before we forget about the cause of this issue, let's please check this together in the next days... ping me :)

Production build 0.71.5 2024