I would bet that you have more than one version of PHP installed and are using the wrong one
If you make a temp.php file and put it in the base osTicket folder, them edit it and put ?php phpinfo(); ? them browse to it, what version of php does it say?Also what's on that line in that file? (From error)Did you upgrade your plugins when you upgraded osTicket?