Local video formatter doesn't check for missing fields

Created on 26 January 2024, 10 months ago
Updated 17 February 2024, 9 months ago

Problem/Motivation

When AblePlayer is installed, if the local video media type is added after the fact, it can cause a white screen error due to missing fields. Example error:

Message Error: Call to a member function view() on null in Drupal\ableplayer\Plugin\Field\FieldFormatter\AbleplayerVideoFormatter->getSourceFiles() (line 79 of /var/aegir/platforms/prod-wwu_drupal-9.x-10.0.1/web/modules/contrib/ableplayer/src/Plugin/Field/FieldFormatter/AbleplayerVideoFormatter.php).

Proposed resolution

Add a conditional check for the sign language field to allow field formatter to skip if not present.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States CarlyGerard

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

Comments & Activities

Production build 0.71.5 2024