ErrorException: [E_DEPRECATED] strtolower(): Passing null to parameter #1 ($string) of type string is deprecated

ZixDev

Member
Affected version
v2.2.8 Patch 1
I'm using PHP 8.1.1
Server error log
  • ErrorException: [E_DEPRECATED] strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
  • src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php:256
  • Generated by: Unknown account
  • Jan 23, 2022 at 10:32 PM

Stack trace​

#0 [internal function]: XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/Users/zix/Docu...', 256)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php(256): strtolower(NULL)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php(173): Swift_Transport_Esmtp_AuthHandler->getAuthenticatorsForAgent()
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(371): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(XF\Mail\SmtpTransport))
#4 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(148): Swift_Transport_EsmtpTransport->doHeloCommand()
#5 src/XF/Mail/Mailer.php(288): Swift_Transport_AbstractSmtpTransport->start()
#6 src/XF/Mail/Queue.php(148): XF\Mail\Mailer->send(Object(Swift_Message), Object(XF\Mail\SmtpTransport), Array)
#7 src/XF/Job/MailQueue.php(12): XF\Mail\Queue->run(7.99007)
#8 src/XF/Job/Manager.php(260): XF\Job\MailQueue->run(7.99007)
#9 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 7.99007)
#10 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 7.99007)
#11 job.php(43): XF\Job\Manager->runQueue(false, 8)
#12 {main}
 
Top