PHP Fatal error: Trait "Drush\Boot\AutoloaderAwareTrait when installed on a site with Drush 12.x

Created on 26 July 2023, over 1 year ago
Updated 12 December 2023, about 1 year ago

Problem/Motivation

When site_audit is installed on a site that uses Drush 12.x, the following fatal error is shown:

PHP Fatal error: Trait "Drush\Boot\AutoloaderAwareTrait" not found in /var/www/html/web/modules/contrib/site_audit/src/Commands/SiteAuditCommands.php on line 26

Drush's AutoloaderAwareInterface and AutoloaderAwareTrait were removed on the 12.x branch but the SiteAuditCommands class depends on them.

Steps to reproduce

  1. Install site_audit on a site that is using Drush 12.
  2. Run a drush command such as drush status.

Proposed resolution

TBD.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇺🇸United States markdorison

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

Comments & Activities

Production build 0.71.5 2024