Error updating to 2.7

Created on 29 April 2025, 10 days ago

Problem/Motivation

I am getting the following error running 'drush updb' after upgrading to 2.7:

> [notice] Update started: dxpr_builder_update_8037
> [error] Drupal\Core\Config\Config::setData(): Argument #1 ($data) must be of type array, false given, called in /var/www/html/web/modules/contrib/dxpr_builder/dxpr_builder.install on line 929
> [error] Update failed: dxpr_builder_update_8037
[error] Update aborted by: dxpr_builder_update_8037

Steps to reproduce

composer require 'drupal/dxpr_theme:^6.0.3' -W
drush updb

Proposed resolution

function dxpr_builder_update_8037(): void {
  $config_name = 'image.style.optimize';

  // Load data from file.
  $config_path = \Drupal::service('extension.list.module')->getPath('dxpr_builder') . '/config/install';
  $source = new FileStorage($config_path);
  $data = $source->read($config_name);

Code is looking for image.style.optimize.yml in ../config/install
config file is actually in ..config/optional

πŸ› Bug report
Status

Active

Version

2.7

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Dave Kopecek

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

Comments & Activities

Production build 0.71.5 2024