Error: Interface "Drupal\migrate\Plugin\MigrateDestinationInterface" not found in web/modules/contrib/migmag/migmag_rollbackable/src/RollbackableInterface.php on line 15 #0 vendor/composer/ClassLoader.php(576): include()

Created on 12 October 2023, 9 months ago
Updated 26 April 2024, 2 months ago

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).

🐛 Bug report
Status

RTBC

Version

1.8

Component

Code

Created by

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

Comments & Activities

  • Issue created by @pankaj1390
  • Assigned to shalini_jha
  • 🇮🇳India shalini_jha

    I am checking these Issues

  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.0 & MySQL 5.7
    last update 8 months ago
    278 pass
  • @shalini_jha opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review 8 months ago
  • 🇮🇳India shalini_jha

    Hi @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.

  • Status changed to RTBC 2 months ago
  • 🇪🇸Spain fjgarlin

    I had the same issue and after applying the MR things started to work again. The changes in the code also make sense. Thanks.

Production build 0.69.0 2024