Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance. The more information you give us the better we will be able to assist you. Thank you.
Environment details?
Version of osTicket?
I would think that localhost
isn't a valid domain name / webserver so what do you have set for your Helpdesk URL?