While uninstalling migmag_rollbackable module
Getting Error:
vendor/composer/ClassLoader.php(576): include()
#1 vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/var/www/html/u...')
#2 web/modules/contrib/migmag/migmag_rollbackable/migmag_rollbackable.install(16): Composer\Autoload\ClassLoader->loadClass('Drupal\\migmag_r...')
#3 [internal function]: migmag_rollbackable_schema()
#4 web/core/lib/Drupal/Core/Extension/ModuleHandler.php(400): call_user_func_array(Object(Closure), Array)
#5 web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(661): Drupal\Core\Extension\ModuleHandler->invoke('migmag_rollback...', 'schema')
#6 web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(500): Drupal\Core\Extension\ModuleInstaller->uninstallSchema('migmag_rollback...')
#7 web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(91): Drupal\Core\Extension\ModuleInstaller->uninstall(Array, true)
#8 vendor/drush/drush/src/Commands/pm/PmCommands.php(194): Drupal\Core\ProxyClass\Extension\ModuleInstaller->uninstall(Array, true)
#9 [internal function]: Drush\Commands\pm\PmCommands->uninstall(Array, Array)
#10 vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#11 vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#13 vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#14 vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
#21 vendor/drush/drush/drush(4): require('/var/www/html/u...')
#22 vendor/bin/drush(119): include('/var/www/html/u...')
#23 {main}
Error: Interface "Drupal\migrate\Plugin\MigrateDestinationInterface" not found in include() (line 15 of web/modules/contrib/migmag/migmag_rollbackable/src/RollbackableInterface.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | command-for-issues-fix.png | 46.1 KB | shalini_jha |
Issue fork migmag-3393493
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
shalini_jha commentedI am checking these Issues
Comment #4
shalini_jha commentedHi @pankaj1390
migmag_rollbackable has some dependency on the Drupal core migrate module, so I have added an MR to fix this issue.
For your uninstalling error just install the migrate module and the then uninstall migmag_rollbackable module you will be able to uninstall.
Comment #5
fjgarlin commentedI had the same issue and after applying the MR things started to work again. The changes in the code also make sense. Thanks.
Comment #6
huzookaLowering priority according https://www.drupal.org/node/3156247#s-list-of-priority-options
Comment #7
fjgarlin commentedAfter #3433398: Drupal 11 compatibility fixes for migmag this was merged, the MR no longer applies. I tried a
/rebasebut it didn't work, so I'm just re-creating a new branch and MR for this.Comment #9
fjgarlin commentedhttps://git.drupalcode.org/project/migmag/-/merge_requests/10 contains the changes that are RTBC.
Comment #12
huzookaAdded a test to reproduce the issue.
Comment #13
huzookaI have this idea to not have any dependency on the Migrate module, which I don't want to break. I'd make an attempt to remove the MigrateDestinationInterface base form RollbackableInterface... Visually it doesn't seem to be necessary.
Comment #15
huzookaSeems to be OK this way, I hope you forgive me 🥹