Fatal error: Schema error for theme condition selection field

Created on 25 December 2022, almost 2 years ago
Updated 8 August 2023, over 1 year ago

Problem/Motivation

Uncaught PHP Exception InvalidArgumentException: "The configuration property conditions.current_theme.theme.olivero doesn't exist." at ... /core/lib/Drupal/Core/Config/Schema/ArrayElement.php line 76

Steps to reproduce

Select any Theme under "configuration" while trying to save a custom CSS ... apparently the Theme does not exist.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany Carlo

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.

  • 🇪🇸Spain aleix

    Just note that it also happens to me when using config_inspector module and going to /admin/reports/config-inspector:
    The configuration property conditions.current_theme.theme.claro doesn't exist.
    Upgrading as pookmish says and resaving all assets (2 in my case) fixes this.

  • A database upgrade hook would've been ideal here to normalize the asset injector configs which have just a single theme as well as warn users about asset injector entries with multiple themes which needed addressing, removing any manual legwork.

Production build 0.71.5 2024