Dear all,

all of a sudden our email fetching from a Microsoft Office 365 account stopped working. We have recently reauthorized but then after a couple of days it stopped working. If we try to edit the Oauth2 configuration we get this window

Apache log reporst this error:

PHP Fatal error: Uncaught Error: Call to a member function setConfigClass() on null in phar:///var/www/html/osTicket-v1.18.1/include/plugins/auth-oauth2.phar/oauth2.php:640\nStack trace:\n#0 phar:///var/www/html/osTicket-v1.18.1/include/plugins/auth-oauth2.phar/oauth2.php(429): GenericEmailOauth2Provider->getPluginInstance()\n#1 phar:///var/www/html/osTicket-v1.18.1/include/plugins/auth-oauth2.phar/oauth2.php(441): OAuth2ProviderBackend->getConfig()\n#2 /var/www/html/osTicket-v1.18.1/include/class.email.php(593): OAuth2ProviderBackend->getConfigForm()\n#3 /var/www/html/osTicket-v1.18.1/include/class.email.php(663): EmailAccount->getOAuth2ConfigForm()\n#4 /var/www/html/osTicket-v1.18.1/include/ajax.email.php(23): EmailAccount->getAuthConfigForm()\n#5 /var/www/html/osTicket-v1.18.1/include/class.dispatcher.php(153): EmailAjaxAPI->configureAuth()\n#6 /var/www/html/osTicket-v1.18.1/include/class.dispatcher.php(40): UrlMatcher->dispatch()\n#7 /var/www/html/osTicket-v1.18.1/include/class.dispatcher.php(119): Dispatcher->resolve()\n#8 /var/www/html/osTicket-v1.18.1/include/class.dispatcher.php(40): UrlMatcher->dispatch()\n#9 /var/www/html/osTicket-v1.18.1/scp/ajax.php(327): Dispatcher->resolve()\n#10 {main}\n thrown in phar:///var/www/html/osTicket-v1.18.1/include/plugins/auth-oauth2.phar/oauth2.php on line 640, referer: https://xxxxx.com/osTicket/scp/emails.php?id=5

All plugins are to the latest version.

Any idea how to solve. We are basically stuck

  • KevinTheJedi replied to this.
  • legrimpeur

    You will need to delete the associated _email_account records for the email in question, associated _plugin_instance record(s) for the email in question, and any associated _config records for the email and plugin instance. Then you can go to the email and reconfigure the OAuth2 and fetching/sending information.

    Cheers.

    maybe you can delete the contents of the ost_email_account table.

    legrimpeur

    You will need to delete the associated _email_account records for the email in question, associated _plugin_instance record(s) for the email in question, and any associated _config records for the email and plugin instance. Then you can go to the email and reconfigure the OAuth2 and fetching/sending information.

    Cheers.

      legrimpeur

      I wanted to mention that this typically only happens once. Meaning this usually is a result of an upgrade mishap and once you reconfigure the email you shouldn’t have to again.

      Happy Holidays!

                 🦌🛷🎅🏻💨
      
      
      ☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️
           ❄️        ❄️        ❄️
      ❄️                ❄️
               ❄️              ❄️
                     🎄
                  🎁🎁🎁

      Cheers.

      Write a Reply...