Problem
When viewing a webform submission I get these errors
Warning: array_unique() expects parameter 1 to be array, string given in Drupal\bootstrap\Utility\Attributes->getClasses() (line 59 of themes/contrib/bootstrap/src/Utility/Attributes.php).
Warning: array_merge(): Argument #1 is not an array in Drupal\bootstrap\Utility\Attributes->addClass() (line 29 of themes/contrib/bootstrap/src/Utility/Attributes.php).
Warning: array_unique() expects parameter 1 to be array, null given in Drupal\bootstrap\Utility\Attributes->addClass() (line 29 of themes/contrib/bootstrap/src/Utility/Attributes.php).
I couldn't get the errors to show up on simplytest.me using just Bootstrap 8.x-3.13 theme, so this may just be affecting my custom theme. To remove these warnings in my case I just put 'webform-submission-information' class into an array.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3007725-2.patch | 629 bytes | tjpope |
Comments
Comment #2
tjpope commentedHere is the patch to my small change.
Comment #4
jrockowitz commentedDoh! Thanks for the patch.