If some render array has '#attributes' or '#body_attributes' property defined as string instead of array there is error raiased:

The website encountered an unexpected error. Please try again later.
TypeError: array_unique(): Argument #1 ($array) must be of type array, string given in array_unique() (line 66 of themes/contrib/bootstrap/src/Utility/Attributes.php).
array_unique() (Line: 66)

Issue fork bootstrap-3276930

Command icon 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

f1mishutka created an issue. See original summary.

f1mishutka’s picture

Title: TypeError: array_unique(): Argument #1 ($array) must be of type array, string given in array_unique() (line 66 of themes/contrib/bootstrap/src/Utility/Attributes.php). array_unique() (Line: 66) » TypeError: array_unique(): Argument #1 ($array) must be of type array, string given in array_unique()

f1mishutka’s picture

Status: Active » Needs review

shelane made their first commit to this issue’s fork.

  • shelane committed 915d702 on 8.x-3.x authored by f1mishutka
    Issue #3276930 by f1mishutka: TypeError: array_unique(): Argument #1 ($...
shelane’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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