PHP Warning when exporting config

Created on 17 July 2024, about 1 year ago
Updated 11 September 2024, 12 months ago

Problem/Motivation

Hi,

I am doing the update from core 10.2.7 to 10.3.1 and config profile 1.1.0 to 2.0.0-beta1 on a project.

After updating the codebase and executing drush updb, I have exported the config to update my custom profile config.

During drush cex execution, I got the following line like 780 times:

[warning] foreach() argument must be of type array|object, null given ConfigProfileSubscriber.php:163

Proposed resolution

Looking at the lines in the file:

    $blacklistProperty = $this->profileInfo['blacklist_property'];
    foreach ($blacklistProperty as $blacklistItem) {

I guess this was due to the transition with blacklist_property feature introduced in the 2.0.x branch.

Maybe a missing hook_update to ensure existing websites get the new config entry.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇷France Grimreaper France 🇫🇷

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024