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.
Steps to reproduce:
1) Open field formatter settings
2) Change "Select icon type" input to "Square icon"
3) Save settings
4) Open entity where you use this field and you will get this notice:
Notice: Undefined index: iconSquare in Drupal\social_link_field\Plugin\Field\FieldFormatter\SocialLinkFontAwesomeFormatter->viewElements() (line 78 of modules/contrib/social_link_field/src/Plugin/Field/FieldFormatter/SocialLinkFontAwesomeFormatter.php).
Comment | File | Size | Author |
---|---|---|---|
#3 | social_link_field-3060202-3.patch | 732 bytes | DrupalZone |
Comments
Comment #2
sumit-k CreditAttribution: sumit-k commentedHi Romixua,
Can you mention which version of drupal you are using ?
Comment #3
DrupalZone CreditAttribution: DrupalZone as a volunteer commentedI got the same error, Resolved using attached patch.
Comment #4
DrupalZone CreditAttribution: DrupalZone as a volunteer commentedComment #5
krina.addweb CreditAttribution: krina.addweb at AddWeb Solution Pvt. Ltd. commented@DrupalZone, Could you please provide the steps to replicate? as I tried but unable to receive the Error.
Hope you will help!
Thanks
Comment #6
RomixuaHi bsumit5577,
I used 8.6.15 version fo drupal core and 1.x-dev version of this module.
Comment #7
RomixuaI think we need select Instagram item to get this error
Comment #8
sumit-k CreditAttribution: sumit-k commentedReplicate the error on selecting instagram, checked with @DrupalZone patch.seems fine.
Comment #9
dmytro_yarish CreditAttribution: dmytro_yarish at EPAM Systems for EPAM Systems commentedThe patch applies and resolves the issue.
Comment #11
Romixua