Project

General

Profile

Bug #93196 ยป stacktrace.txt

Mayer Patrick, 2020-12-31 15:04

 

(1/1) ArgumentCountError

Too few arguments to function Symfony\Component\Mailer\Mailer::__construct(), 0 passed in /home/.../www/.../typo3_src-10.4.12/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 3431 and at least 1 expected
in /home/.../www/.../typo3_src-10.4.12/vendor/symfony/mailer/Mailer.php line 31

private $transport;
private $bus;
private $dispatcher;

public function __construct(TransportInterface $transport, MessageBusInterface $bus = null, EventDispatcherInterface $dispatcher = null)
{
$this->transport = $transport;
$this->bus = $bus;
$this->dispatcher = LegacyEventDispatcherProxy::decorate($dispatcher);

at Symfony\Component\Mailer\Mailer->__construct()
in /home/.../www/.../typo3_src-10.4.12/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 3431

return self::$container->get($className);
}

// Create new instance and call constructor with parameters
$instance = new $finalClassName(...$constructorArguments);
// Register new singleton instance, but only if it is not a known PSR-11 container service
if ($instance instanceof SingletonInterface && !(self::$container !== null && self::$container->has($className))) {
self::$singletonInstances[$finalClassName] = $instance;
}

at TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Symfony\\Component\\Mailer\\Mailer')
in /home/.../www/.../htdocs/typo3conf/ext/.../Classes/Service/SendMailService.php line 58

->from(new Address('...', '...'))
->subject('Message')
->format('html') // only HTML mail
->setTemplate('Default');
GeneralUtility::makeInstance(Mailer::class)->send($email);
}
}
    (1-1/1)