Closed (fixed)
Project:
Path redirect import
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
23 Oct 2023 at 14:10 UTC
Updated:
26 Dec 2023 at 06:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
auseidon986 commentedCorrected namespace
from
to
Comment #4
awearring commentedAfter applying this patch I now get the following [similar] error:
Error: Class "Drupal\migrate_tools\Drush\MigrateToolsCommands" not found in include() (line 27 of /app/web/modules/composer/path_redirect_import/src/Commands/PathRedirectImportCommands.php)Any suggestions?
Comment #5
manuel garcia commentedI tested the #2 patch, verified the namespace and its the correct fix. The error is also gone once the change is applied.
@Ali_W, try verifying that the
web/modules/contrib/migrate_tools/src/Drush/MigrateToolsCommands.phpfile is actually there perhaps.Comment #6
timovos commentedrtbc +1
Comment #7
norman.lolRe-title issue
Comment #8
norman.lolSetting back to active, since it's not only the include that needs to be fixed, but also the Drush command needs to be moved into
src/Drush/Commands/.Comment #9
norman.lolComment #10
manuel garcia commentedUpdated the patch with the change in directory.
Comment #11
manuel garcia commentedForgot to update the namespace on previous patch...
Comment #12
norman.lolOh, it looks like migrate_tools did it wrong. They put the command into
src/Drush/instead ofsrc/Drush/Commands/. I asked them to reopen their Drush 12 issue: #3372643-12: Drush 12 support.Comment #13
norman.lolAfter that we need to adjust the patch again. Although right now it's technically working.
Comment #15
plopescPatch merged including some bits from #3373025: Update to support path redirect import migrate_tools 6.0.2
Could you please confirm whether this is working as expected for you in -dev version before tagging a new release?
Thank you!
Comment #16
petr illekHi Pablo,
I try to use the new dev version and it is no longer producing any errors while trying to export the config.
From that perspective it seems the issue is fixed.
Comment #17
pvbergen commentedI can confirm that these changes fix the problem on drupal/core:^10 after upgrade hooks have run.
I do however still encounter the issue when on 9.5. With path_redirect_import:dev-2.0.x#5e9f8317b9a01d249be9bc5c4d35523823e7b69d (newest commit) I still get the following error, both with drush 11 or 12:
To make path_redirect_import work for the upgrade from 9.5 to 10, I need to use:
- https://git.drupalcode.org/project/path_redirect_import/-/merge_requests/21
- path_redirect_import:dev-2.0.x#8e1ec6a9241b46b4f597c44edddd4db368daabd9
Revision comparison: https://git.drupalcode.org/issue/path_redirect_import-3373025/-/compare/...
I'm not quite sure why this is, maybe somebody can elaborate. The only difference I could find is the location of the Drush command (Drupal\path_redirect_import\Commands\PathRedirectImportCommands vs. \Drupal\path_redirect_import\Drush\Commands\PathRedirectImportCommands).
For now, I can use the above combination to make the upgrade work and then switch to dev-2.0.x once I'm on D10.
Comment #18
manuel garcia commentedThanks @ploplesc!
I did that just now, my findings using Drush 12.4.3.0:
dev-2.0.xdrush prie- got me a valid link, serving a valid csv file.drush priino errors but i didn't try actually importing a file.No errors are coming up if I run
drush statusor anything similar.Comment #19
pasan.gamage commentedFor me to resolve this error had to downgrade to Drush 11
Apply patch from https://www.drupal.org/project/path_redirect_import/issues/3373025
"Update to support path redirect import migrate_tools 6.0.2": "https://www.drupal.org/files/issues/2023-07-06/path_redirect_import-3373..."
Comment #21
plopescIncluded as part of 2.0.8 Thank you!
Comment #23
manuel garcia commentedthanks @plopesc!
Comment #25
norman.lolmigrate_tools command has now been moved into the correct place, see #3403792: Move Drush commands from src/Drush/ to src/Drush/Commands/. We need to adjust the statement again.
Please reopen.
Comment #26
norman.lolComment #27
plopescThank you for the heads-up @leymannx!
Changes already applied against -dev release.
I'll roll a stable release once Migrate Tools new stable release includes the referenced changes.