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

PASS

Well-known member
Affected version
2.2.11
Just got some of these errors this morning. I read the other thread that said it was fix in 2.2.11.
I'm running 2.2.11 and PHP 8.1.12

2022-12-02_12-37-50.webp

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 Dec 2, 2022 at 9:23 AM
Stack trace
#0 [internal function]: XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/home/removed/publi...', 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(294): 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(8)
#8 src/XF/Job/Manager.php(260): XF\Job\MailQueue->run(8)
#9 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#10 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#11 job.php(43): XF\Job\Manager->runQueue(false, 8)
#12 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(97) "https://www.removed/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
It appears that these errors are only occurring when in dev mode. Probably not a big deal. Hope that helps.
 
2.2.11 was a security fix. All features and bug fixes that aimed towards 2.2.11 will be released in 2.2.12:
 
Top Bottom