TypeError: array_diff_key(): Argument #2 must be of type array, null given in array_diff_key() (line 61 of /modules/contrib/layout_paragraphs_limit/src/EventSubscriber/LayoutParagraphsLimitAllowedTypesSubscriber.php).

Created on 1 June 2023, over 1 year ago
Updated 8 June 2023, over 1 year ago

When there is no disallowed paragraph selected on the current layout, the following ajax error appears when trying to add paragraphs in a layout: TypeError: array_diff_key(): Argument #2 must be of type array, null given in array_diff_key() (line 61 of /modules/contrib/layout_paragraphs_limit/src/EventSubscriber/LayoutParagraphsLimitAllowedTypesSubscriber.php).

This happens, because the array $disallowed_types is null.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium kensae

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024