When I click on "Konfiguration" to configure the OAuth2-settings, the following happens on all browser I testet it with (Firefox, Edge, even Safari on my phone): Can Anybody tell me how to fix this?
EDI-Admin
You need to review your logs (general server logs, webserver error logs, PHP error logs, MySQL/MariaDB error logs, osTicket System Logs, Browser Console logs, etc.) for any related errors.
Cheers.
Thanks for pointing me in the right direction. I'm quite new to this, since the guy that set everything up left the company before i got here. Can anyone do an ELI5 an this error? Here is the excerpt from the last error message after I tried configuring OAuth2: AH01215: PHP Fatal error: Uncaught Error: Call to a member function setConfigClass() on null in phar:///mnt/web219/a0/00/512087900/htdocs/tickets/include/plugins/auth-oauth2.phar/oauth2.php:620: /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: Stack trace:: /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: #0 phar:///mnt/web219/a0/00/512087900/htdocs/tickets/include/plugins/auth-oauth2.phar/oauth2.php(429): GenericEmailOauth2Provider->getPluginInstance(): /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: #1 phar:///mnt/web219/a0/00/512087900/htdocs/tickets/include/plugins/auth-oauth2.phar/oauth2.php(441): OAuth2ProviderBackend->getConfig(): /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: #2 /mnt/web219/a0/00/512087900/htdocs/tickets/include/class.email.php(595): OAuth2ProviderBackend->getConfigForm(): /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: #3 /mnt/web219/a0/00/512087900/htdocs/tickets/include/class.email.php(659): EmailAccount->getOAuth2ConfigForm(): /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: #4 /mnt/web219/a0/00/512087900/htdocs/tickets/include/ajax.email.php(23): EmailAccount->getAuthConfigForm(): /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: #5 /mnt/web219/a0/00/512087900/htdocs/tickets/include/class.dispatcher.php(153): EmailAjaxAPI->configureAuth(): /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: #6 /mnt/web219/a0/00/512087900/htdocs/tickets/include/class.dispatcher.php(40): UrlMatcher->dispatch(): /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: #7 /mnt/web219/a0/00/512087900/htdocs/tickets/include/class.dispatcher.php(122): Dispatcher->resolve(): /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: #8 /mnt/web219/a0/00/512087900/htdocs/tickets/include/class.dispatcher.php(40): UrlMatcher->dispatch(): /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: #9 /mnt/web219/a0/00/512087900/htdocs/tickets/scp/ajax.php(327): Dispatcher->resolve(): /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: #10 {main}: /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php AH01215: thrown in phar:///mnt/web219/a0/00/512087900/htdocs/tickets/include/plugins/auth-oauth2.phar/oauth2.php on line 620: /home/strato/http/premium/rid/79/00/512087900/htdocs/tickets/scp/ajax.php
Basically something is wrong in the database so when it is trying to add the config it's failing. You can delete the associated records in the ost_config table where the namespace is like email.email_id.instance.instance_id (where email_id is the ID of the email and instance_id is the ID of the ost_plugin_instance for this email). Then you can delete the associated records in the ost_email_account table where the email_id is equal to the ID of the email having issues.
ost_config
namespace
email.email_id.instance.instance_id
email_id
instance_id
ost_plugin_instance
ost_email_account
Once you do this you should be able to reconfigure Remote Mailbox and Outgoing (SMTP) tabs and retrieve OAuth2 tokens.
Hi,
Thanks for your reply, I've deleted all referendes to the previously setup OAuth2 stuff, now the window to configure it opens up fine.
Thanks again