PHP 8 compatibility. Media Browser modal window content cannot be loaded

Created on 18 May 2022, over 2 years ago
Updated 8 March 2023, almost 2 years ago

Problem/Motivation

Having used Workbench Scheduler with all dependencies and Media module got error "Uncaught TypeError: Cannot read properties of undefined (reading 'label')" when trying to edit Image field on node page, with Media Browser widget.

Steps to reproduce

  1. Install modules Workbench Scheduler with all dependencies and Media with all dependencies
  2. For any node type add new image field with Widget Type โ€“ Media Browser
  3. Add a schedule in admin/config/workbench/scheduler for selected node type
  4. Create a node of selected type with uploaded image with new image field
  5. Switch to PHP 8.0
  6. Go to node edit page created on step 4 and click "Edit" button for the uploaded image
  7. See modal window "Loadingโ€ฆ"
๐Ÿ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

๐Ÿ‡ฐ๐Ÿ‡ฟKazakhstan Dmitrii_Zadorozhnyi

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024