Admin theme gets wrong block placement during install when default theme contains block config

Created on 9 February 2016, about 9 years ago
Updated 20 March 2025, 14 days ago

Problem/Motivation

During the installation process, if the default theme contain block config, this config is applied to the admin theme.
I've created a basic install profile to demonstrate the issue.

Steps to reproduce :

  1. download the attached install profile in your /profiles directory
  2. install drupal using the admthemebug profile
  3. log in
  4. go to admin/structure/block/list/seven

Expected result: the "Powered by Drupal" block is not enabled
Current result: the "Powered by Drupal" block is in the "Header" region

Known workaround

Use bartik as default theme then, in an install task, install your own theme, set it as default and uninstall bartik.

Proposed resolution

None yet.

Remaining tasks

Find a solution, fix it, commit, enjoy

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component

theme system

Created by

🇫🇷France duaelfr Montpellier, France

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.

  • 🇳🇴Norway zaporylie

    This still happens even if the theme is enabled via Recipe. Applying drupal/drupal_cms_admin_ui recipe on the existing site with customized block placement makes these blocks also appear in the Gin admin theme.

Production build 0.71.5 2024