Fixed Error exception on account-confirmation/resend

FloV

Well-known member
Affected version
2.2.10
Hi,

i found this error in the error log (php 8.1):
  • ErrorException: [E_DEPRECATED] strtolower(): Passing null to parameter #1 ($string) of type string is deprecated src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/MimePart.php:192

Stack-Trace​

#0 [internal function]: XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/var/www/share/...', 192)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/MimePart.php(192): strtolower(NULL)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/MimePart.php(59): Swift_Mime_MimePart->convertString(NULL)
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Message.php(256): Swift_Mime_MimePart->setBody(NULL)
#4 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Message.php(173): Swift_Message->restoreMessage()
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/SendmailTransport.php(129): Swift_Message->toByteStream(Object(Swift_Transport_StreamBuffer))
#6 src/XF/Mail/Mailer.php(312): Swift_Transport_SendmailTransport->send(Object(Swift_Message), Array)
#7 src/XF/Mail/Mail.php(458): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SendmailTransport), NULL, true)
#8 src/XF/Service/User/AbstractConfirmationService.php(85): XF\Mail\Mail->send()
#9 src/XF/Service/User/AbstractConfirmationService.php(63): XF\Service\User\AbstractConfirmationService->sendConfirmationEmail()
#10 src/XF/ControllerPlugin/EmailConfirmation.php(43): XF\Service\User\AbstractConfirmationService->triggerConfirmation()
#11 src/XF/Pub/Controller/AccountConfirmation.php(58): XF\ControllerPlugin\EmailConfirmation->actionResend(Object(SV\DailyStatistics\XF\Entity\User), '/account-confir...', Array)
#12 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\AccountConfirmation->actionResend(Object(XF\Mvc\ParameterBag))
#13 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:AccountConfi...', 'Resend', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\AccountConfirmation), NULL)
#14 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\AccountConfirmation), NULL)
#15 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#17 src/XF.php(524): XF\App->run()
#18 index.php(20): XF::runApp('XF\\Pub\\App')
#19 {main}
 
Well.. pretty sure that the current version of XF is not "certified" for use with 8.1 so you can expect errors.
Do you have the same issue when running the latest 8.0.x version of PHP?
 
Top Bottom