Try the below steps:
1.) Create a new directory called osticket_tmp
somewhere (ideally outside of your HTML directory) and give it 777 permissions (just to start with).
2.) Open include/class.pdf.php
, go to line 76
(here), and change sys_get_temp_dir()
to '/path/to/your/osticket_tmp'
(with the quotes).
3.) Retry printing a Ticket.
If that works adjust the permissions on the new osticket_tmp
directory to something like 755. Just make sure the system is able to delete the temporary files it creates otherwise this directory will grow in size each time you print.
If that still doesn't work your host has some funky restrictions and it'd be worth contacting their support to see what's causing the issue.
Cheers.