xperseguers / t3ext-image_autoresize

TYPO3 Extension image_autoresize. Simplify the way your editors may upload their images.
https://extensions.typo3.org/extension/image_autoresize
GNU General Public License v3.0
16 stars 22 forks source link

Error saving the sheduler task #70

Closed dogawaf closed 9 months ago

dogawaf commented 1 year ago

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.