I get an error editing the scheduler task, if any of the directory fields is not validated.
Too few arguments to function TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::__construct(), 0 passed in /var/www/html/web/typo3conf/ext/image_autoresize/Classes/Task/BatchResizeAdditionalFieldProvider.php on line 139 and exactly 5 expected
The reason is the new fakeSchedulerModuleController() which extends the original Module,, but the constructor is called with no argument.
Also, PSR forbids declaring two php class within one file.
In order to fix it, the BatchResizeAdditionalFieldProvider should directly use the flashMessageQueue.
Hello
TYPO3 11
I get an error editing the scheduler task, if any of the directory fields is not validated.
Too few arguments to function TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::__construct(), 0 passed in /var/www/html/web/typo3conf/ext/image_autoresize/Classes/Task/BatchResizeAdditionalFieldProvider.php on line 139 and exactly 5 expected
The reason is the
new fakeSchedulerModuleController()
which extends the original Module,, but the constructor is called with no argument. Also, PSR forbids declaring two php class within one file.In order to fix it, the BatchResizeAdditionalFieldProvider should directly use the flashMessageQueue.