Typed property error when rendering Image component with media library selection.

Created on 29 April 2025, 14 days ago

Overview

The following error occurs when using the Image component and inserting an Image Media item via the Media Library:

Error: Typed property Drupal\experience_builder\Form\ComponentInputsForm::$elementInfoManager must not be accessed before initialization in Drupal\experience_builder\Form\ComponentInputsForm->elementHasInput() (line 151 of /var/www/html/xb/web/modules/contrib/experience_builder/src/Form/ComponentInputsForm.php).

Steps to Reproduce

  1. Install the Media Library Block module.
  2. In the top toolbar, navigate to Dynamic Components → Media → Image.
  3. Click on the Image component that appears under Content.
  4. Click the Add Media button, select any image, and click Insert Selected.
  5. The image does not render, and the above error appears in the database logs.

Expected behaviour

After selecting and inserting an image via the Media Library, the Image component should correctly render the selected image on the page without any errors.

🐛 Bug report
Status

Active

Version

0.0

Component

Code

Created by

🇮🇳India vishalkhode

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