Error: Class "Element" not found in media_library_edit_form_process_disabled_fields()

Created on 11 September 2024, 2 months ago

Problem/Motivation

In the file “media_library_edit/media_library_edit. module” the function "media_library_edit_form_process_disabled_fields()" calls the "children()"method belonging to the "Drupal\Core\Render\Element" class, however the class declaration has been removed (https://git.drupalcode.org/project/media_library_edit/-/commit/28c567749...), so it generates site breaking when you go to any part of your website that requires the "media_library_edit_form_process_disabled_fields()" function.

Proposed resolution

Add the statement “use Drupal\Core\Render Element;”

🐛 Bug report
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

🇪🇸Spain albeorte

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

Comments & Activities

  • Issue created by @albeorte
  • Status changed to Closed: cannot reproduce 2 months ago
  • 🇪🇸Spain albeorte

    Sorry, it is an error caused by a function, not contributed in the module, but added via custom.

    Sorry, I close the issue

Production build 0.71.5 2024