Errors when trying to remove content or users by drush on D10

Created on 27 September 2023, about 1 year ago
Updated 8 November 2023, about 1 year ago

Problem/Motivation

Some errors are triggering when I try to remove content or users by drush:

> TypeError: delete_all_users_batch_delete(): Argument #1 ($users) must be of type array, null given, called in /app/vendor/drush/drush/includes/batch.inc on line 256 in /app/web/modules/contrib/delete_all/includes/delete_all.user.batch.inc on line 16 #0 /app/vendor/drush/drush/includes/batch.inc(256): delete_all_users_batch_delete(NULL, Object(DrushBatchContext))
> #1 /app/vendor/drush/drush/includes/batch.inc(201): _drush_batch_worker()
> #2 /app/vendor/drush/drush/includes/batch.inc(95): _drush_batch_command('21690')
> #3 /app/vendor/drush/drush/src/Drupal/Commands/core/BatchCommands.php(20): drush_batch_command('21690')
> #4 [internal function]: Drush\Drupal\Commands\core\BatchCommands->process('21690', Array)
> #5 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
> #6 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #7 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #8 /app/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 /app/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #10 /app/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #11 /app/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))
> #12 /app/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #13 /app/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #14 /app/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
> #15 /app/vendor/drush/drush/drush.php(79): Drush\Runtime\Runtime->run(Array)
> #16 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
> #17 /app/vendor/bin/drush(120): include('/app/vendor/dru...')
> #18 {main}
>  [warning] Drush command terminated abnormally.

Also, some accessCheck functions erros are triggering too, as follow:

> Error: Call to undefined method Drupal\mysql\Driver\Database\mysql\Select::accessCheck() in /app/web/modules/contrib/delete_all/includes/delete_all.user.batch.inc on line 28 #0 /app/vendor/drush/drush/includes/batch.inc(256): delete_all_users_batch_delete(NULL, Object(DrushBatchContext))
> #1 /app/vendor/drush/drush/includes/batch.inc(201): _drush_batch_worker()
> #2 /app/vendor/drush/drush/includes/batch.inc(95): _drush_batch_command('21691')
> #3 /app/vendor/drush/drush/src/Drupal/Commands/core/BatchCommands.php(20): drush_batch_command('21691')
> #4 [internal function]: Drush\Drupal\Commands\core\BatchCommands->process('21691', Array)
> #5 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
> #6 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #7 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #8 /app/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 /app/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #10 /app/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #11 /app/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))
> #12 /app/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #13 /app/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #14 /app/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
> #15 /app/vendor/drush/drush/drush.php(79): Drush\Runtime\Runtime->run(Array)
> #16 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
> #17 /app/vendor/bin/drush(120): include('/app/vendor/dru...')
> #18 {main}
>  [warning] Drush command terminated abnormally.

Steps to reproduce

Try to remove contents or users by drush:

* delete-all-delete-content (dadc): deletes all content
* delete-all-delete-users (dadu): deletes users

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇧🇷Brazil fkatsukawa São Paulo, 🇧🇷

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

Comments & Activities

Production build 0.71.5 2024