When running the command to export the Db I get this error.
I am using the last version 3.1 installed via composer require 'drupal/gdpr:^3.1'
ArgumentCountError: Too few arguments to function Drupal\Core\Database\Transaction\TransactionManagerBase::unpile(), 1 passed in /var/www/html/drupal/web/modules/contrib/gdpr/modules/gdpr_dump/src/Service/GdprSqlDump.php on line 349 and exactly 2 expected in /var/www/html/drupal/web/core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php on line 264 #0 /var/www/html/drupal/web/modules/contrib/gdpr/modules/gdpr_dump/src/Service/GdprSqlDump.php(349): Drupal\Core\Database\Transaction\TransactionManagerBase->unpile('drupal_transact...')
#1 /var/www/html/drupal/web/modules/contrib/gdpr/modules/gdpr_dump/src/Service/GdprSqlDump.php(317): Drupal\gdpr_dump\Service\GdprSqlDump->cleanup()
#2 /var/www/html/drupal/web/modules/contrib/gdpr/modules/gdpr_dump/src/Service/GdprSqlDump.php(118): Drupal\gdpr_dump\Service\GdprSqlDump->prepare()
#3 /var/www/html/drupal/web/modules/contrib/gdpr/modules/gdpr_dump/src/Commands/GdprDumpCommands.php(97): Drupal\gdpr_dump\Service\GdprSqlDump->dump(Array)
#4 [internal function]: Drupal\gdpr_dump\Commands\GdprDumpCommands->dump(Array)
#5 /var/www/html/drupal/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#6 /var/www/html/drupal/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#7 /var/www/html/drupal/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#8 /var/www/html/drupal/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#9 /var/www/html/drupal/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/drupal/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/html/drupal/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/html/drupal/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/html/drupal/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))
#14 /var/www/html/drupal/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/html/drupal/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
#16 /var/www/html/drupal/vendor/drush/drush/drush(4): require('/var/www/html/d...')
#17 {main}
ArgumentCountError: Too few arguments to function Drupal\Core\Database\Transaction\TransactionManagerBase::unpile(), 1 passed in /var/www/html/drupal/web/modules/contrib/gdpr/modules/gdpr_dump/src/Service/GdprSqlDump.php on line 349 and exactly 2 expected in Drupal\Core\Database\Transaction\TransactionManagerBase->unpile() (line 264 of /var/www/html/drupal/web/core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php).
[warning] Drush command terminated abnormally.
I saw the issue
https://www.drupal.org/project/gdpr/issues/3462672
🐛
Impossible to Dump database
Closed: duplicate
but it was closed
Closing in favor of
🐛
Call to undefined method Drupal\mysql\Driver\Database\mysql\Connection::transactionManager()
Fixed
Even with that linked issue solved, I am still unable to dump DB.
I tried patch from
https://www.drupal.org/project/gdpr/issues/3462672#comment-15723620
🐛
Impossible to Dump database
Closed: duplicate
and it worked but I had warnings:
> bash: line 1: gdpr_clone_node__field_test: command not found
> bash: line 1: node__field_test: command not found
> bash: line 1: gdpr_clone_node_revision__field_name: command not found