With Config Split, 2.x config not migrated to 3.x

Created on 25 October 2023, about 1 year ago
Updated 3 January 2024, about 1 year ago

Problem/Motivation

Just Upgraded to D10 and testing on our dev server I get

The website encountered an unexpected error. Please try again later.

TypeError: Drupal\Core\Plugin\DefaultLazyPluginCollection::__construct(): Argument #2 ($configurations) must be of type array, null given, called in /var/www/html/docroot/modules/contrib/require_login/src/LoginRequirementsManager.php on line 169 in Drupal\Core\Plugin\DefaultLazyPluginCollection->__construct() (line 61 of core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php).

Steps to reproduce

I think this happened because I have 4 environments and only 2 of those have "require login" (dev/stage). And my Localhost ddev and prod do not.

So on localhost the module was updated, but because it was not enabled the config was never migrated to 3.x.

When deployed to dev I see the update run.
2023-10-25T18:18:54Z require 9301 hook_update_n 9301 - Migrate 2.x to 3.x config
2023-10-25T18:18:54Z _login schema.

Proposed resolution

Not sure if anything can be done, be nice to not have a WSOD, or default config is loaded if missing?

My Fix was to fake my DEV environment(config split wise), set the correct settings and save the config and export.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States NicholasS

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

Comments & Activities

  • Issue created by @NicholasS
  • πŸ‡ΊπŸ‡ΈUnited States NicholasS

    Mostly just posting this so people from google with the same error can eventually find the fix.

  • Status changed to Closed: works as designed about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States robphillips

    You should export the updated config from your localhost and commit it to the codebase. Then you can import the already updated config with or without config split on the other environments. For example, with drush config:import.

    Closing because it's not an issue with the module and config export is not officially supported. Although it should work fine with config split. Furthermore, config split 2.x is in active development so use 1.x until a stable release is available.

  • πŸ‡ΉπŸ‡³Tunisia mh.marouan

    To fix this issue, should export config require_login.settings after upgrade to Drupal 10

Production build 0.71.5 2024