PHP crash on alternate theme block placement

Created on 21 June 2023, over 1 year ago
Updated 22 June 2023, over 1 year ago

I create a block that I want to use only on affiliate theme. On instanciating the block on the affiliate theme, the page crashes and I get the following:

Drupal\Core\Config\ConfigDuplicateUUIDException: Attempt to save a configuration entity '[block_name]' with UUID '132a50a7-7fa7-44ef-9abd-ce8e678e9a36' when this entity already exists with UUID 'c84874ac-59bb-4322-b581-44e1a0054128' in Drupal\Core\Config\Entity\ConfigEntityBase->preSave() (line 313 of /[site]/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php).

I've tried deleting and recreating the block, originating from either the base domain or affiliate domain; the result is the same.

So creating theme-specific blocks seems not to be possible at this time. Marking this as major. Any ideas?

UPDATE: Cross-posted on Domain Theme Switch:

https://www.drupal.org/project/domain_theme_switch/issues/3368382 πŸ› Major block placement issues Closed: works as designed

UPDATE: It looks like changes have to be made from the master domain. To clarify: if you're making changes from the sub.main.domain.com page, they're not saved. Changes done from main.domain.com seem to take. Sorry for the false alarm.

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

- Domain Content

Created by

πŸ‡ΊπŸ‡ΈUnited States bcobin

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

Comments & Activities

Production build 0.71.5 2024