Overview

Warning: Undefined array key "provider" in block_theme_suggestions_block() (line 79 of core/modules/block/block.module).

In addition my page is mangled -

Proposed resolution

I think in #3501600: Split 1 PageTemplate config entity into N PageRegion config entities we may have missed something

User interface changes

Comments

larowlan created an issue. See original summary.

larowlan’s picture

larowlan’s picture

StatusFileSize
new136.11 KB

My page is also mangled (although that could be an 11.x issue)

larowlan’s picture

Title: Warning from block components when enabling for global template » Page mangled and warning from block components when enabling for global template
Issue summary: View changes
larowlan’s picture

Also happens on 11.1.2

wim leers’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs steps to reproduce
StatusFileSize
new371.84 KB

I'd have expected PHP Warnings to cause test failures 😳 But maybe this only gets triggered in E2E tests? We should expand cy.drupalUninstall() to verify there's no warning or error log entries, that'd catch this.

Still, I wanted to reproduce manually. So I just did a fresh install of 0.x (dce53274decc5ae78eeeb3c6a0006d2f198453ca), and cannot reproduce. I'm on 11.1.1 and PHP 8.3.15.

I even put a breakpoint on that particular line in block_theme_suggestions_block() and can observe the expected #configuration being present:

What am I missing? 🙈

larowlan’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I cannot reproduce this either

I think my 'fresh install' included enabling navigation, layout builder and layout discovery but then uninstalling them.

But skipping that step, can't reproduce.

Putting this down to being under the weather.

larowlan’s picture

Status: Closed (cannot reproduce) » Active

I can reliably reproduce this now.
It requires turning on XB for global regions in olivero

larowlan’s picture

StatusFileSize
new362.18 KB

The warning is coming from the \Drupal\experience_builder\Controller\ApiConfigControllers::list from entity type ID component

wim leers’s picture

Component: Data model » Component sources
effulgentsia’s picture

Status: Active » Closed (duplicate)
Related issues: +#3499364: Implement HTML comment annotations for Regions, replace HTML wrappers

I'm not able to reproduce the block_theme_suggestions_block() warning.

I do see the page mangling when I enable "Use Experience Builder for page templates in this theme." in Olivero's settings, especially the page title block getting all narrow like in the issue summary's screenshot. I think that's due to the extra <div> that XB is adding around regions that #3499364: Implement HTML comment annotations for Regions, replace HTML wrappers aims to remove, so I think this issue is a duplicate of that one.

When the checkbox above is not enabled, the markup around the <main> element is:

<div class="main-content__container container">
  <main role="main" class="site-main">

When the checkbox is enabled, that markup is:

<div class="main-content__container container">
  <div class="sidebar-grid grid-full">
    <main role="main" class="site-main">

In Chrome inspector, if I remove the classes from that middle div, it fixes the mangling of the page title.