Hello everyone,
I have Osticket running correctly on my hosting provider for 2 years, and I had a Google OAuth2 connection that was working perfectly.
For the past 10 days, my clients have been encountering an error when they submit a ticket, but the ticket is still created. I checked the logs and found this error.
Fatal error: Uncaught Error: Call to undefined function str_starts_with() in
/home/include/class.email.php:466 Stack trace: #0 /home/include/class.email.php(524): EmailAccount->isOAuthAuth() #1 /home/include/class.email.php(881): EmailAccount->getBkId() #2 /home/bjpo5783/include/class.email.php(761): EmailAccount->getOAuth2AuthCredentials('gmail', true) #3 /home/bjpo5783/include/class.email.php(782): EmailAccount->getCredentials('oauth2:gmail', true) #4 /home/bjpo5783/include/class.email.php(750): EmailAccount->getMailBoxCredentials(true) #5 /home/bjpo5783/include/class.email.php(733): EmailAccount->getCredentials('mailbox', true) #6 /home/bjpo5783/include/class.email.php(721): EmailAccount->getFreshCredentials() #7 /home/bjpo5783/include/class.email.php(474): EmailAccount->hasCredentials() #8 /home/bjpo5783/include/class.mailer.php(36): in /home/bjpo5783/include/class.email.php on line 466
I verified my OAuth2 connection, and the token had expired.
I tried updating to v1.17.5, but that didn't resolve the issue.
I also attempted to use another Gmail address, but I encountered the same problem: the authentication gets stuck on the loading screen.
I follow this :