Issue Bug Closed

#89024Scheduler: Run 'language:update' command leads to unknown command argument exception

Lars Tode 08/27/19, 14:08 updated 02/27/20, 12:42

Description

This problem occurs when trigger language:update as scheduler task.

Testcase

  1. Go to SYSTEM / Scheduler
  2. Create a new task of type Execute console commands (scheduler)
  3. Select command language:update
  4. Set locale to en (or your current language)
  5. Save and close
  6. Execute task by click on the Run task

You will get following error
Flashmessage.png

This exception is thrown in \TYPO3\CMS\Install\Command\LanguagePackCommand::execute at line 58:

if (substr_count($input->getArgument('command'), ':') === 2) {

The argument command seems not to exists in context of the Run task command.

This issue could be solved by an additional test for that argument:

if ($input->hasArgument('command') && substr_count($input->getArgument('command'), ':') === 2) {

Other tests

  1. Trigger the scheduler using the cli works without a problem.
  2. The command itself did not lead to any failures.

—-

Environment

PHP 7.2.21
TYPO3 v9.5.9
Symfony Console v4.3.4

—-

Reviews 2