mediaelement has an incorrect migration file that breaks the migrate subsystem

Created on 26 May 2023, over 1 year ago
Updated 26 March 2024, 9 months ago

Problem/Motivation

When mediaelement is installed and I execute `drush migrate:status` I get the following error

debug: [Step Debug] Could not connect to debugging client. Tried: 192.168.0.104:9003 (fallback through xdebug.client_host/xdebug.client_port).
 [error]  TypeError: Illegal offset type in Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase->moduleExists() (line 150 of /app/web/core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php) #0 /app/web/core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php(108): Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase->moduleExists(Array)
#1 /app/web/modules/contrib/migrate_tools/src/Commands/MigrateToolsCommands.php(839): Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase->checkRequirements()
#2 /app/web/modules/contrib/migrate_tools/src/Commands/MigrateToolsCommands.php(233): Drupal\migrate_tools\Commands\MigrateToolsCommands->migrationsList('', Array)
#3 [internal function]: Drupal\migrate_tools\Commands\MigrateToolsCommands->status('', Array)
#4 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#5 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#6 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#7 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(390): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#8 /app/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /app/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /app/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /app/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /app/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /app/vendor/drush/drush/src/Runtime/Runtime.php(48): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /app/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
#15 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
#16 /app/vendor/bin/drush(120): include('/app/vendor/dru...')
#17 {main}. 

Proposed resolution

There is a syntax error on the migration YML file. The `source_module` should not be an array. Fix it.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇪🇸Spain unstatu

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

Comments & Activities

Production build 0.71.5 2024