Mond
You are using a very old, outdated, and no longer supported version of osTicket. This error is likely due to a bug that has since been resolved in later versions. Please upgrade to the latest (v1.18 | v1.17.4) and retest. Make sure you take full backups of the files and database and make sure you have all the prerequisites updated (mainly the PHP version).
Cheers.