Hi All.

Im using Bootstrap theme. and when i use the layout builder and the "Manage Content" Options, i get a XHR Error like this 3 times

( ! ) Warning: array_unique() expects parameter 1 to be array, string given in themes/contrib/bootstrap/src/Utility/Attributes.php on line 66
( ! ) Warning: array_intersect(): Argument #2 is not an array in themes/contrib/bootstrap/src/Utility/Attributes.php on line 100

After a quick debug i just found that there are three elements with a class not defined as array but as a string.

After changing this to an array, my problem is solved.

Attaching path for you guys to review and improve if needed. Thanks.

CommentFileSizeAuthor
PanelsIPEBlockPluginForm.diff833 bytestengoku

Comments

tengoku created an issue. See original summary.

  • joelpittet committed 2f71a98 on 8.x-4.x authored by tengoku
    Issue #3045578 by tengoku: Bug Report: ( ! ) Warning: array_unique()...
joelpittet’s picture

Version: 8.x-4.3 » 8.x-4.x-dev
Status: Active » Fixed

Thank you for the patch @tengoku, I've committed it to the dev branch.

Status: Fixed » Closed (fixed)

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