Notice: Undefined index: class in video_embed_field_handle_vimeo()

Created on 13 October 2015, about 9 years ago
Updated 27 February 2023, over 1 year ago

Problem/Motivation

When rendering the video field class, the code is trying to retrieve a setting called "class" that might not always be set. When not set, a warning is thrown.

Proposed resolution

Check that the setting does exist.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

Original report

Notice: Undefined index: class in video_embed_field_handle_vimeo() (Line 519 of video_embed_field/video_embed_field.handlers.inc).

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇩🇪Germany michaellenahan

Live updates comments and jobs are added and updated live.
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.

  • First commit to issue fork.
  • 🇮🇳India kunal_sahu Karnataka

    Hi @all Thanks you for all your patches. The patch 2589857-4.patch

    </code> applied successfully.
    
    <code>PS C:\xampp\htdocs\drupal\web\themes\custom\video_embed_field-2589857> git apply -v .\2589857-4.patch
    Checking patch video_embed_field.handlers.inc...
    Applied patch video_embed_field.handlers.inc cleanly.

    Creating an MR for helping out maintainer. Thanks michaellenahan for the patch . Thanks

  • @kunal_sahu opened merge request.
Production build 0.71.5 2024