hello error 500 when I make a new ticket and I type the first letters of the person. we went from version 1.14 to 1.17 and we are using php 8.0.
[Wed Jan 25 14:26:24.286549 2023] [php:error] [pid 2647] [client 10.0.1.37:56581] PHP Fatal error: Uncaught TypeError: ldap_free_result(): Argument #1 ($ldap) must be of type resource, bool given in phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php:501\nStack trace:\n#0 phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(501): ldap_free_result()\n#1 /home/user/www/osTicket/include/pear/PEAR.php(755): Net_LDAP2_Search->_Net_LDAP2_Search()\n#2 [internal function]: PEAR_call_destructors()\n#3 {main}\n thrown in phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php on line 501, referer: https://support.company.fr/scp/tickets.php?a=open
[Wed Jan 25 14:43:46.793847 2023] [php:error] [pid 816] [client 10.0.1.40:50117] PHP Fatal error: Uncaught TypeError: ldap_first_entry(): Argument #2 ($result) must be of type resource, bool given in phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php:186\nStack trace:\n#0 phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(186): ldap_first_entry()\n#1 phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(595): Net_LDAP2_Search->shiftEntry()\n#2 phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(561): Net_LDAP2_Search->next()\n#3 phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(614): Net_LDAP2_Search->current()\n#4 phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/authentication.php(323): Net_LDAP2_Search->valid()\n#5 phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/authentication.php(452): LDAPAuthentication->search()\n#6 /home/user/www/osTicket/include/class.auth.php(428): StaffLDAPAuthentication->search()\n#7 /home/user/www/osTicket/include/ajax.users.php(47): AuthenticationBackend::searchUsers()\n#8 /home/user/www/osTicket/include/class.dispatcher.php(153): UsersAjaxAPI->search()\n#9 /home/user/www/osTicket/include/class.dispatcher.php(40): UrlMatcher->dispatch()\n#10 /home/user/www/osTicket/include/class.dispatcher.php(122): Dispatcher->resolve()\n#11 /home/user/www/osTicket/include/class.dispatcher.php(40): UrlMatcher->dispatch()\n#12 /home/user/www/osTicket/scp/ajax.php(326): Dispatcher->resolve()\n#13 {main}\n thrown in phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php on line 186, referer: https://support.company.fr/scp/tickets.php?id=13023
[Wed Jan 25 14:43:46.794031 2023] [php:error] [pid 816] [client 10.0.1.40:50117] PHP Fatal error: Uncaught TypeError: ldap_free_result(): Argument #1 ($ldap) must be of type resource, bool given in phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php:501\nStack trace:\n#0 phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(501): ldap_free_result()\n#1 /home/user/www/osTicket/include/pear/PEAR.php(755): Net_LDAP2_Search->Net_LDAP2_Search()\n#2 [internal function]: _PEAR_call_destructors()\n#3 {main}\n thrown in phar:///home/user/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php on line 501, referer: https://support.company.fr/scp/tickets.php?id=13023
Thank u