after execute migration from WordPress XML
Fatal error: Class 'Drush\Commands\DrushCommands' not found in /home/*****/modules/contrib/migrate_tools/src/Commands/MigrateToolsCommands.php on line 23
Drupal 8.8.0
PHP 7.1.33 / 7.2.25
migrate_tools 8.x-4.x-dev
wordpress_migrate 8.x-3.0-dev
Drush version 9.0-dev
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | 3099611-15.patch | 3.94 KB | heddn |
| #15 | interdiff_14-15.txt | 315 bytes | heddn |
Comments
Comment #2
proweb.ua commentedComment #3
proweb.ua commentedif PHP 7.0.33
Comment #4
arrubiu commentedSame problem: Drupal 8.8.0, PHP 7.3.12, migrate_tools 8.x-4.5
Comment #5
krishnamohan_ramadugulaSame problem,
When I try to execute the migration process for Joomla getting the following error.
Fatal error: Class 'Drush\Commands\DrushCommands' not found in [my drupal path]\modules\migrate_tools\src\Commands\MigrateToolsCommands.php on line 23
Details
PHP - 7.2.11
Drush - 9.7.1
Migrate tools - 8.x-4.5
Drupal core 8.8.0
Comment #6
heddnCan't reproduce the issue. Using core 8.8.0 and drush 9.7.1 and tools 4.5. I used composer to require the dependencies. Is that how you did things?
Comment #7
philosurfer commentedI am having the same issue with the same versions but we are running Drush 8.3.1 and PHP 7.2.24
Comment #8
philosurfer commentedNoting, if I have a local drush in the /app/vendor/ folder installed this works.
If I am using a platform installed drush it fails with OP's error.
Comment #9
heddnNon local composer drush is not supported for drush 9. And the error in the OP is specifically for a version of migrate tools that only supports local composer installs of drush. Non local install of drush 8 and the legacy drush.inc commands is still available. Since I can't reproduce this, can I get an understanding if the common thread here is non local composer installed drush 9 causes this issue?
Comment #10
arrubiu commentedI've the problem only if I use the "sub_process" plugin for migrate.
The uploaded file works without the field_sezione" field, in process.
If I add it, it returns me the error (I've drush 8.x).
Comment #11
heddnDrush 8 has best effort support at this point. Try updating to drush 10 or even 9. Does the issue go away?
Comment #12
philosurfer commentedWhy would we be getting this issue in the UI where we are not calling Drush at all?
Comment #13
heddnI guess I assumed the migration was executed from drush. But it sounds that might not be true. How are you executing the migration?
Comment #14
heddnThat's gotta be the solution. Can someone report if this patch fixes things?
Comment #15
heddnComment #16
proweb.ua commented#15 works
Comment #17
philosurfer commented#15 works. Thanks for the patch
Comment #20
heddnComment #22
edorsini@mit.edu commented#15 worked for me. I'll add the patch to the composer.json.
Comment #23
heddnThis was committed and pushed 3 months ago.
Comment #24
damien laguerre commentedThis issue is still present in the latest version 4.5.
The file in the last release still contains the problem:
https://git.drupalcode.org/project/migrate_tools/-/blob/8.x-4.5/src/Comm...
Line 28:
The file in the 8.x-4.x branch is Ok:
https://git.drupalcode.org/project/migrate_tools/-/blob/8.x-4.x/src/Comm...
I think you have to make a new release.
Comment #25
chalk commentedI agree with Damien. The dev version works.
Comment #26
parthabapari commented#24 worked for me. Thanks Damien.
Comment #27
b0gucki3 commented#15 works for me. Many thanks!
Comment #28
kenorb commentedFYI: Had this error with the latest version 6.0.2 due to the old dependency found in the custom module, the namespace is now called Drupal\migrate_tools\Drush\MigrateToolsCommands.
Comment #29
ddavisboxleitner commentedRegarding the file location change in migrate_tools, there is an issue with a patch that works in D10 here: https://www.drupal.org/project/path_redirect_import/issues/3373025