500 is an internal server error. Which is a generic http error indicating that something is wrong with the server. Ie. something went wrong server side. When this sort of thing happens, it causes an event to be logged. If as you say thats the code that that triggered it then you should see a error in your PHP error log. This logs location can vary based on your flavor of linux, you should check your php.ini and see where yours located and get the actual error. Or you could turn on error reporting in osTicket by editing \main.inc.php find these lines on or about line 49-50: ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
change them to:
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);And the error should be displayed in the browser window. I'll ask the devs to take a look at your thread here on the forums.