KevinTheJedi
I switched to PHP8.1 solved this problem.
But I got another problem while trying to configure ldap. the site is unresponsive, and I get an error message at osticketlog
[Fri Apr 28 11:09:36.860163 2023] [proxy_fcgi:error] [pid 3334272] (70007)The timeout specified has expired: [client 10.2.16.12:57304] AH01075: Error dispatching request to : (polling), referer: https://osticket..domain/scp/plugins.php?id=12&a=add-instance