'Undefined array key' error during site install

Created on 29 March 2024, 9 months ago

Problem/Motivation

We added the Trash module to our install profile, with five entity types already enabled in config, including file. When running a site install, the installation fails because TrashPermissions::entityTypePermissions() assumes the file entity type already exists if it's listed in config, but at this point the File module hasn't been installed yet.

Proposed resolution

Add a check if the entity type actually exists before trying to use it.

🐛 Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Comments & Activities

Production build 0.71.5 2024