Fixed mail dns error after 2.3

estranged

Well-known member
Affected version
2.3.0
Hello,

After upgrading to 2.3 I am having the error below in error logs. Any suggestions?

Thanks.

Code:
TypeError: Symfony\Component\Mailer\Transport\Dsn::__construct(): Argument #5 ($port) must be of type ?int, string given, called in /home/x/public_html/src/XF/Mail/Mailer.php on line 348 src/vendor/symfony/mailer/Transport/Dsn.php:28

#0 src/XF/Mail/Mailer.php(348): Symfony\Component\Mailer\Transport\Dsn->__construct('smtp', 'smtp.mailgun.or...', 'postmaster@turk...', '*****', '')
#1 src/XF/App.php(1258): XF\Mail\Mailer::getTransportFromOption('smtp', Array)
#2 src/XF/Container.php(33): XF\App->XF\{closure}(Object(XF\Container))
#3 src/XF/App.php(1202): XF\Container->offsetGet('mailer.transpor...')
#4 src/XF/Container.php(33): XF\App->XF\{closure}(Object(XF\Container))
#5 src/XF/App.php(3008): XF\Container->offsetGet('mailer')
#6 src/XF/Service/Conversation/NotifierService.php(121): XF\App->mailer()
#7 src/XF/Service/Conversation/NotifierService.php(64): XF\Service\Conversation\NotifierService->_sendNotifications('create', Array, Object(XF\Entity\ConversationMessage))
#8 src/XF/Service/Conversation/CreatorService.php(264): XF\Service\Conversation\NotifierService->notifyCreate()
#9 src/XF/Service/Conversation/CreatorService.php(254): XF\Service\Conversation\CreatorService->sendNotifications()
#10 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\Conversation\CreatorService->_save()
#11 src/XF/Pub/Controller/ConversationController.php(361): XF\Service\Conversation\CreatorService->save()
#12 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\ConversationController->actionAdd(Object(XF\Mvc\ParameterBag))
#13 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Conversation', 'Add', Object(XF\Mvc\RouteMatch), Object(xenMade\ABP\XF\Pub\Controller\Conversation), NULL)
#14 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(xenMade\ABP\XF\Pub\Controller\Conversation), NULL)
#15 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(2777): XF\Mvc\Dispatcher->run()
#17 src/XF.php(798): XF\App->run()
#18 index.php(23): XF::runApp('XF\\Pub\\App')
#19 {main}
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.1).

Change log:
Handle older SMTP option values more gracefully
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom