Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.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 commentedHere's the patch.
Comment #3
michaellenahan commentedComment #4
michaellenahan commentedOh, it's needed for video_embed_field_handle_youtube() as well.
Comment #5
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 commentedComment #7
david_garcia commentedComment #8
chris matthews commentedComment #10
kunal_sahu 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