philbertphotos / osticket-multildap-auth-plugin

Plugin for OS Ticket that allows for authentication with multiple domains.
GNU General Public License v3.0
28 stars 17 forks source link

Error 500 after saving plugin settings page #74

Closed HofstadterK closed 8 months ago

HofstadterK commented 9 months ago

Greetings!

I have a fresh install of osTicket 1.18 on WinServer 2022/IIS and only installed plugin is last version multi ldap. After I fill settings on instance page and click "save", i get "Plugin settings saved" message, but after that osTicket goes into brick mode, returning 500 on any attempt to connect, I can't even open the starting page. PHP log says this:

PHP Fatal error: Uncaught OrmException: LdapMultiAuthPlugin: nstance: Field not defined in C:\inetpub\wwwroot\osticket\include\class.orm.php:413 Stack trace:

0 C:\inetpub\wwwroot\osticket\include\class.orm.php(417): VerySimpleModel->get()

1 C:\inetpub\wwwroot\osticket\include\plugins\multi-ldap\auth.php(334): VerySimpleModel->__get()

2 C:\inetpub\wwwroot\osticket\include\plugins\multi-ldap\auth.php(379): LdapMultiAuthPlugin->logger()

3 C:\inetpub\wwwroot\osticket\include\plugins\multi-ldap\auth.php(233): LdapMultiAuthPlugin->sync_copy()

4 C:\inetpub\wwwroot\osticket\include\plugins\multi-ldap\auth.php(23): LdapMultiAuthPlugin->firstRun()

5 C:\inetpub\wwwroot\osticket\include\class.plugin.php(1164): LdapMultiAuthPlugin->bootstrap()

6 C:\inetpub\wwwroot\osticket\include\class.plugin.php(202): PluginInstance->bootstrap()

7 C:\inetpub\wwwroot\osticket\include\class.osticket.php(685): PluginManager->bootstrap()

8 C:\inetpub\wwwroot\osticket\main.inc.php(34): osTicket::start()

9 C:\inetpub\wwwroot\osticket\scp\staff.inc.php(20): require_once('...')

10 C:\inetpub\wwwroot\osticket\scp\admin.inc.php(16): require_once('...')

11 C:\inetpub\wwwroot\osticket\scp\helptopics.php(16): require('...')

12 {main}

thrown in C:\inetpub\wwwroot\osticket\include\class.orm.php on line 413

Manual removing of plugin from include directory restores osTicket back.

philbertphotos commented 9 months ago

WOW never seen such a error let me do a test with the latest 1.8 and see it seems to be the logger may be incompatible hmmmm

philbertphotos commented 9 months ago

Ok I think is a bug that seems to only be a problem on a in a FRESH install on osticket 1.8 I will fix it and make an update.

HofstadterK commented 9 months ago

Great! Thank you very much.

HofstadterK commented 8 months ago

Hi. Any luck with this issue? Maybe some dirty fix or workaround? No pressure at all, I just kinda have a deadline. : )

philbertphotos commented 8 months ago

I deleted the plugin and reinstalled several times from source of github and I cannot reproduce this error. Is it still happening no matter when you add it back?

philbertphotos commented 8 months ago

There can be a work around maybe

philbertphotos commented 8 months ago

send me a copy of this file C:\inetpub\wwwroot\osticket\include\plugins\multi-ldap\auth.php

HofstadterK commented 8 months ago

OK, i made once again fresh install of 1.18, clean as Mother Mary, not even language pack installed. IIS/PHP 8.2.11. Same error after saving instance settings. auth.php attached. auth.zip

philbertphotos commented 8 months ago

@HofstadterK Fixed .... found the issue just download the new update and fixing my versions :)