After a LONG series of debugging activities, including transferring the entire application from the hosting environment to a local PC environment, via XAMPP, I found the "problem".
I think it may be useful to share the result, so that it may become useful for anyone else in the same situation.
All problems depend on DEFAULT SLA (time limit for ticket resolution).
I guess it is a malfunction....
I don't give myself any logical explanation....
Basically, by setting Grace Period: 48 hours, as of April 18, the procedure was no longer able to enter a new ticket without going into timeout, just as it was no longer possible for an Agent to open tickets other than those previously entered.
Even with a new installation performed from scratch, done locally on the PC, with DB creation from "blank," with Grace Period: = 16 hours (default proposed by the installation), it works. With 48 hours it crashes.
I had set it to 48 hours from the very day of my installation, two years ago, and it always worked.... Until April 18.
Granted that in my case there was NO specific interest in the function of checking for delays in closing tickets, I DISABLED the SLA function, and everything started working again.
I hope I have made myself clear. Sorry if I was a bit long.