Issue Bug Closed

#97156Changing arguments and options in scheduled commands fails

Alexander Grein 03/09/22, 19:04 updated 09/26/25, 11:09

Description

To reproduce add a symfony command with attributes and/or options to the scheduler task, change an attribute or options and press save.

The following PHP Warning will appear and the changes are not saved:
Core: Error handler (BE): PHP Warning: Undefined array key “command” in /app/private/typo3/sysext/scheduler/Classes/Task/ExecuteSchedulableCommandAdditionalFieldProvider.php line 100

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 3

  1. Alexander Grein commented <span data-processor="relativetime" data-value="2022-03-11T10:07:30+00:00" > 03/11/22, 10:07 </span>

    After a long trip I found out, that the problem comes from the property name (!) of one of my command options.

    Only if the name is “action” the problem appears. This is independent wether it’s an option or an attribute.

    So, both of this configure methods produce the descripted problem:
    protected function configure(): void { $this->addArgument('action', InputArgument::OPTIONAL, 'The name of the action', 'all'); }

    protected function configure(): void { $this->addOption('action', null, InputOption::VALUE_REQUIRED, 'The name of the action', 'all'); }
  2. Benni Mack commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2025-03-23T19:48:46+00:00" > 03/23/25, 19:48 </span>

    Hey Alex,

    can you recheck? I was not able to reproduce this error in v13/v14.

  3. Oliver Bartsch commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2025-09-26T11:09:55+00:00" > 09/26/25, 11:09 </span>

    Hi,

    I have just checked this again and can no longer reproduce this. I’ll therefore close this issue now. In case you still encounter this, please just create a new issue with reference to this one.

    Best, Oli