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.

CommentFileSizeAuthor
#2 3007725-2.patch629 bytestjpope

Comments

TJPope created an issue. See original summary.

tjpope’s picture

StatusFileSize
new629 bytes

Here is the patch to my small change.

  • jrockowitz committed b89bbbf on 8.x-5.x authored by TJPope
    Issue #3007725 by TJPope: Warnings when viewing a submission
    
jrockowitz’s picture

Status: Active » Fixed

Doh! Thanks for the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.