Project

General

Profile

Actions

Bug #89024

closed

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

Added by Lars Tode over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
scheduler
Target version:
-
Start date:
2019-08-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Language, Scheduler, Console
Complexity:
Is Regression:
Sprint Focus:

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

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


Files

Flashmessage.png (7.21 KB) Flashmessage.png Lars Tode, 2019-08-27 13:55
Actions #1

Updated by Lars Tode over 4 years ago

  • Description updated (diff)
Actions #2

Updated by Georg Ringer over 4 years ago

  • Status changed from New to Accepted

for 9 only as in 10 this has been removed

Actions #3

Updated by Lars Tode over 4 years ago

  • Description updated (diff)
Actions #4

Updated by Riccardo De Contardi over 4 years ago

Still present on 9.5.13

Actions #5

Updated by Gerrit Code Review about 4 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63240

Actions #6

Updated by Gerrit Code Review about 4 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63241

Actions #7

Updated by Anonymous about 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF