TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in array_keys() (line 545 of core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php)

Created on 20 February 2023, over 1 year ago
Updated 17 September 2024, about 2 months ago

Environment

  • PHP: 8.2.0
  • Drupal: 10.0.3
  • Block Class: 2.0.x

Steps

  • Place any block to any region in Structure | Block layout
  • Make sure there is no classes section available with the notice Customize the styling of this block by adding CSS classes.
  • Placing block will result in crash.
TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in array_keys() (line 545 of core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php).

Warning: Trying to access array offset on value of type null in Drupal\block_class\Service\BlockClassHelperService->validateDynamicClasses() (line 948 of modules/contrib/block_class/src/Service/BlockClassHelperService.php).
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇦🇺Australia VladimirAus Brisbane, Australia

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024