user_picture prevents installation from profile

Created on 29 January 2025, about 1 month ago

Problem/Motivation

Core: 10.4.1
PHP 8.3

On Sobki (Bootstrap) installation profile, I have the following error when trying a fresh install from the installation profile:

[notice] Performed install task: install_import_translations
 [error]  InvalidArgumentException: Field user_picture is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 616 of /project/app/core/lib/Drupal/Core/Entity/ContentEntityBase.php). 

It is triggered by core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php::submitForm() when user 1 is updated.

In [10.1.x] Upgrade to UIP2 Active , I had to remove user_picture to unblock the MR (where I witnessed the problem for the first time).

In Re-add user_picture field Active , I am trying to reput this field. And having isolated the change:
- without user_picture, the profile is installable
- with user_picture, the profile is no more installable.

I have not found issues on core, but some similar issues listed in "related issues" regarding other installation profiles.

Steps to reproduce

Try to install the Sobki installation profile from Re-add user_picture field Active .

Proposed resolution

Remaining tasks

Found bug origin.

API changes

Release notes snippet

🐛 Bug report
Status

Active

Version

10.4

Component

other

Created by

🇫🇷France Grimreaper France 🇫🇷

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

Comments & Activities

Production build 0.71.5 2024