PHP Fatal error: Trait "Drupal\entity_usage\Controller\EntityUsageListTrait" not found

Created on 8 October 2024, 2 months ago

Problem/Motivation

PHP Fatal Error on database update

Steps to reproduce

Install version 8.x-2.0-beta14, then run drush updb. A PHP Fatal eror like below will show

PHP Fatal error:  Trait "Drupal\entity_usage\Controller\EntityUsageListTrait" not found in /modules/contrib/entity_usage/src/Controller/ListUsageController.php on line 22

Proposed resolution

Add a use statement for the EntityUsageTrait
use Drupal\entity_usage\EntityUsageListTrait;

🐛 Bug report
Status

Active

Component

Code

Created by

🇺🇸United States hablat

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