Skip to content

drush locale-update got Call to a member function get() on null #2812

@hejiann

Description

@hejiann

Drush version : 9.0-dev-g3727ded

Running vendor/bin/drush locale-update got this issue:

PHP Fatal error:  Call to a member function get() on null in /var/www/html/vendor/drush/drush/src/Drupal/Commands/core/LocaleCommands.php on line 113
PHP Stack trace:
PHP   1. {main}() /var/www/html/vendor/drush/drush/drush:0
PHP   2. require() /var/www/html/vendor/drush/drush/drush:4
PHP   3. drush_main() /var/www/html/vendor/drush/drush/drush.php:10
PHP   4. Drush\Boot\BaseBoot->bootstrapAndDispatch() /var/www/html/vendor/drush/drush/includes/preflight.inc:80
PHP   5. drush_dispatch($command = *uninitialized*, $arguments = *uninitialized*) /var/www/html/vendor/drush/drush/src/Boot/BaseBoot.php:92
PHP   6. call_user_func_array:{/var/www/html/vendor/drush/drush/includes/command.inc:195}(*uninitialized*, *uninitialized*) /var/www/html/vendor/drush/drush/includes/command.inc:195
PHP   7. annotationcommand_adapter_process_command() /var/www/html/vendor/drush/drush/includes/command.inc:195
PHP   8. Consolidation\AnnotatedCommand\CommandProcessor->process($output = *uninitialized*, $names = *uninitialized*, $commandCallback = *uninitialized*, $commandData = *uninitialized*) /var/www/html/vendor/drush/drush/includes/annotationcommand_adapter.inc:240
PHP   9. Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter($names = *uninitialized*, $commandCallback = *uninitialized*, $commandData = *uninitialized*) /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php:123
PHP  10. Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback($commandCallback = *uninitialized*, $commandData = *uninitialized*) /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php:153
PHP  11. call_user_func_array:{/var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php:207}(*uninitialized*, *uninitialized*) /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php:207
PHP  12. Drush\Drupal\Commands\core\LocaleCommands->update($options = *uninitialized*) /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php:207

Fatal error: Call to a member function get() on null in /var/www/html/vendor/drush/drush/src/Drupal/Commands/core/LocaleCommands.php on line 113

Call Stack:
    0.0047     216744   1. {main}() /var/www/html/vendor/drush/drush/drush:0
  124.7477     219456   2. require('/var/www/html/vendor/drush/drush/drush.php') /var/www/html/vendor/drush/drush/drush:4
  124.8054     438928   3. drush_main() /var/www/html/vendor/drush/drush/drush.php:10
  131.1271   12182104   4. Drush\Boot\BaseBoot->bootstrapAndDispatch() /var/www/html/vendor/drush/drush/includes/preflight.inc:80
  158.0347   50821560   5. drush_dispatch(???, ???) /var/www/html/vendor/drush/drush/src/Boot/BaseBoot.php:92
  158.0372   50833928   6. call_user_func_array:{/var/www/html/vendor/drush/drush/includes/command.inc:195}(???, ???) /var/www/html/vendor/drush/drush/includes/command.inc:195
  158.0372   50834272   7. annotationcommand_adapter_process_command() /var/www/html/vendor/drush/drush/includes/command.inc:195
  158.3200   50923616   8. Consolidation\AnnotatedCommand\CommandProcessor->process(???, ???, ???, ???) /var/www/html/vendor/drush/drush/includes/annotationcommand_adapter.inc:240
  158.3201   50923952   9. Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(???, ???, ???) /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php:123
  158.3298   50952472  10. Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(???, ???) /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php:153
  158.3298   50953216  11. call_user_func_array:{/var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php:207}(???, ???) /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php:207
  158.3298   50953792  12. Drush\Drupal\Commands\core\LocaleCommands->update(???) /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php:207

 [error]  Drush command terminated abnormally due to an unrecoverable error.
Error: Call to a member function get() on null in /var/www/html/vendor/drush/drush/src/Drupal/Commands/core/LocaleCommands.php, line 113 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions