Submodule ds_extras is not compatible with Drupal 11.1.0

Created on 18 December 2024, 1 day ago

Problem/Motivation

After upgrading Drupal 11 from 11.0.9 to 11.1.0 following WSOD error arrises:

Drupal\Core\DependencyInjection\ContainerNotInitializedException: \Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container. in Drupal::getContainer() (line 169 of core/lib/Drupal.php).

Drupal::getContainer() (Line: 414)
Drupal::config() (Line: 44)
ds_extras_module_implements_alter() (Line: 94)
Drupal\Core\Hook\HookCollectorPass->process() (Line: 73)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile() (Line: 814)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1380)
Drupal\Core\DrupalKernel->compileContainer() (Line: 899)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 505)
Drupal\Core\DrupalKernel->boot() (Line: 707)

As per "Breaking changes" in https://www.drupal.org/node/3442349 following is stated, which is the cause:
Since hook_module_implements_alter is called during build time, it does not support service calls. Also, dynamic ordering in general is extremely unlikely to be supported in the future.

Steps to reproduce

Install and activate "ds" and "ds_extras" on a Drupal 11.1.0 site.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.24

Component

Code

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

Comments & Activities

  • Issue created by @flemming.fridthjof
  • 🇧🇪Belgium swentel

    Hmm interesting, that's something new in D11.1 then I guess, since I know the tests passed in D11.0 - we can probably can get rid of that alter anyway, I'll double check during christmas holidays

Production build 0.71.5 2024