Hello everyone
Logs and System Info below
We have an issue where Mail Fetching with oAuth2 only works once and then needs to be manually triggered to work once more. What I mean by manually triggered is we need to go to Admin Panel -> E-Mails -> Click affected E-Mail -> Remote Mailbox -> Configuration -> Click Submit in the Pop-Up -> Save Changes.
This all works without any errors and the Token in Remote Mailbox -> Configuration -> Token also auto refreshes upon expiring. But again, fetching just doesn't work until we do all this again.
I've downloaded the newest Version of the oAuth Plugin but that didn't change anything. I found an error in the PHP log, but can't really do anything with it.
Has anyone experienced this before?
Thanks in advance
SYSTEM INFORMATION:
osTicket v1.17.2 on Windows Server 2019
PHP 8.0.0
PHP ERRORLOG:
[14-Aug-2023 08:14:01 UTC] PHP Fatal error: Uncaught Error: Call to a member function setConfigClass() on null in phar://D:/www/<DOMAIN>/include/plugins/auth-oauth2.phar/oauth2.php:640
Stack trace:
#0 phar://D:/www/<DOMAIN>/include/plugins/auth-oauth2.phar/oauth2.php(467): GenericEmailOauth2Provider->getPluginInstance()
#1 phar://D:/www/<DOMAIN>/include/plugins/auth-oauth2.phar/oauth2.php(480): OAuth2ProviderBackend->getEmailAuthBackend()
#2 D:\www<DOMAIN>\include\class.email.php(880): OAuth2ProviderBackend->refreshAccessToken()
#3 D:\www<DOMAIN>\include\class.email.php(761): EmailAccount->getOAuth2AuthCredentials()
#4 D:\www<DOMAIN>\include\class.email.php(733): EmailAccount->getCredentials()
#5 D:\www<DOMAIN>\include\class.email.php(721): EmailAccount->getFreshCredentials()
#6 D:\www<DOMAIN>\include\class.email.php(474): EmailAccount->hasCredentials()
#7 D:\www<DOMAIN>\include\class.mailfetch.php(234): EmailAccount->isActive()
#8 D:\www<DOMAIN>\include\class.cron.php(25): osTicket\Mail\Fetcher::run()
#9 D:\www<DOMAIN>\include\class.cron.php(110): Cron::MailFetcher()
#10 D:\www<DOMAIN>\include\api.cron.php(19): Cron::run()
#11 D:\www<DOMAIN>\include\api.cron.php(40): CronApiController->run()
#12 D:\www<DOMAIN>\api\cron.php(23): LocalCronApiController::call()
#13 {main}
thrown in phar://D:/www/<DOMAIN>/include/plugins/auth-oauth2.phar/oauth2.php on line 640