This is the php error log
[31-Mar-2023 01:05:34 UTC] PHP Fatal error: Uncaught TypeError: Sonata\GoogleAuthenticator\GoogleQrUrl::generate(): Argument #2 ($secret) must be of type string, null given, called in phar:///home/company/public_html/help/include/plugins/auth-2fa.phar/class.auth2fa.php on line 150 and defined in phar:///home/company/public_html/help/include/plugins/auth-2fa.phar/lib/Sonata/GoogleAuthenticator/GoogleQrUrl.php:59
Stack trace:
#0 phar:///home/company/public_html/help/include/plugins/auth-2fa.phar/class.auth2fa.php(150): Sonata\GoogleAuthenticator\GoogleQrUrl::generate('steven@company...', NULL, 'companySupport')
#1 phar:///home/company/public_html/help/include/plugins/auth-2fa.phar/class.auth2fa.php(17): Auth2FABackend->getQRCode(Object(StaffSession))
#2 /home/company/public_html/help/include/class.2fa.php(94): Auth2FABackend->getSetupOptions()
#3 /home/company/public_html/help/include/ajax.staff.php(279): TwoFactorAuthenticationBackend->getSetupForm(Array)
#4 /home/company/public_html/help/include/class.dispatcher.php(153): StaffAjaxAPI->configure2FA('1', 'auth.agent')
#5 /home/company/public_html/help/include/class.dispatcher.php(40): UrlMatcher->dispatch('/1/2fa/configur...', Array)
#6 /home/company/public_html/help/include/class.dispatcher.php(122): Dispatcher->resolve('/1/2fa/configur...', Array)
#7 /home/company/public_html/help/include/class.dispatcher.php(40): UrlMatcher->dispatch('/staff/1/2fa/co...', NULL)
#8 /home/company/public_html/help/scp/ajax.php(327): Dispatcher->resolve('/staff/1/2fa/co...')
#9 {main}
thrown in phar:///home/company/public_html/help/include/plugins/auth-2fa.phar/lib/Sonata/GoogleAuthenticator/GoogleQrUrl.php on line 59
This is the web browser error:
