Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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).
Comment | File | Size | Author |
---|---|---|---|
#4 | 2589857-4.patch | 877 bytes | michaellenahan |
Issue fork video_embed_field-2589857
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
michaellenahan CreditAttribution: michaellenahan at erdfisch commentedHere's the patch.
Comment #3
michaellenahan CreditAttribution: michaellenahan at erdfisch commentedComment #4
michaellenahan CreditAttribution: michaellenahan at erdfisch commentedOh, it's needed for video_embed_field_handle_youtube() as well.
Comment #5
Parker Sydnor Historic Site CreditAttribution: Parker Sydnor Historic Site commentedCan you please let me know if this can be fixed with administrative controls in the Drupal website?
Comment #6
david_garcia CreditAttribution: david_garcia commentedComment #7
david_garcia CreditAttribution: david_garcia commentedComment #8
Chris Matthews CreditAttribution: Chris Matthews commentedComment #10
kunal_sahu CreditAttribution: kunal_sahu at Valuebound for Valuebound commentedHi @all Thanks you for all your patches. The patch 2589857-4.patch
Creating an MR for helping out maintainer. Thanks michaellenahan for the patch . Thanks