Error: Cannot unset offset in a non-array variable

Created on 6 December 2022, almost 2 years ago
Updated 20 September 2024, 2 months ago

Getting the following error trying to save the Block Layout admin page.

Message Error: Cannot unset offset in a non-array variable in Drupal\Core\Config\Entity\ConfigEntityBase->unsetThirdPartySetting() (line 531 of /code/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php)
#0 /code/web/modules/contrib/block_class/src/Service/BlockClassHelperService.php(140): Drupal\Core\Config\Entity\ConfigEntityBase->unsetThirdPartySetting('block_class', 'classes')
#1 /code/web/modules/contrib/block_class/block_class.module(107): Drupal\block_class\Service\BlockClassHelperService->blockClassPreSave(Object(Drupal\block\Entity\Block))
#2 [internal function]: block_class_block_presave(Object(Drupal\block\Entity\Block))

This started appearing after I duplicated

I don't know what to make of this but any help is appreciated.
Drupal 9.4.8
PHP 8.1.12

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇺🇸United States dmudie

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

Merge Requests

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