Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
I get this warning when editing the node:
Warning: Undefined array key "url" in Drupal\iframe\Plugin\Field\FieldWidget\IframeWidgetBase->formElement() (line 378 of modules/contrib/iframe/src/Plugin/Field/FieldWidget/IframeWidgetBase.php).
Proposed resolution
I have inspected the configuration YAML for the field, and the url: '' is not there.
Of course, when we insert a default value on the URL field of the iframe fieldet, the error is gone.
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#6 | 3367468-3.patch | 721 bytes | samit.310@gmail.com |
Comments
Comment #2
jrochate CreditAttribution: jrochate at ADJ 3 Sistemas commentedComment #3
samit.310@gmail.com CreditAttribution: samit.310@gmail.com at Material for Drupal India Association commentedI am working on it.
Comment #5
neffets CreditAttribution: neffets as a volunteer commentedkey now checked with !empty
Comment #6
samit.310@gmail.com CreditAttribution: samit.310@gmail.com at Material for Drupal India Association commentedIssue fixed.
Comment #7
ChrisSnyderThe patch worked.
Comment #8
ilfelice CreditAttribution: ilfelice commentedHowdy,
Tested on Drupal 10.1.0 installation. Patch works. Would be nice to have a new release. ;)
Comment #9
neffets CreditAttribution: neffets as a volunteer commentedMerge in next release