[drush 12] Autoloader cannot find MigrateToolsCommands

Created on 24 January 2024, 10 months ago
Updated 6 February 2024, 10 months ago

Problem/Motivation

While upgrading a Drupal 10.1 site to Drupal 10.2.2, I received this error during `drush updb`:

[error]  Error: Class "Drupal\migrate_tools\Drush\Commands\MigrateToolsCommands" not found in include() (line 30 of /var/www/html/web/modules/contrib/path_redirect_import/src/Drush/Commands/PathRedirectImportCommands.php) #0 /var/www/html/vendor/composer/ClassLoader.php(582): include() 

Drush version: 12.4.3

I would include more detail, but I think the solution is simple.

Steps to reproduce

1. Have a Drupal 10.1.x site with Path redirect import already installed
2. Update composer.json with drupal/core-* version of ^10.2 and run `composer update`
3. Run `drush updb`

Proposed resolution

For me, this was fixed by applying this commit as a patch in composer.json.

However, since that commit is not included in the latest release, the best fix is probably to cut a new release.

Remaining tasks

Cut a new release that includes this commit, so other people don't hit this error. Please, and thank you!

πŸ“Œ Task
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada Liam McDermott

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

Comments & Activities

Production build 0.71.5 2024