Hello! I'm trying to make changes to some ticket statuses but when clicking on save it gets stuck on Loading...
Stuck on Loading
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?
Looks like your [unknown] webserver isn't handling AJAX properly.
I would consult your php error logs and the web browser console window to see what errors are being thrown, and that should point you to a solution or at least tell us why it's dying.
- Edited
I just checked the error logs and found this error:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function TicketStatus::update(), 1 passed in /var/www/helpdesk/include/ajax.forms.php on line 181 and exactly 2 expected in /var/www/helpdesk/include/class.list.php:1435\nStack trace:\n#0 /var/www/helpdesk/include/ajax.forms.php(181): TicketStatus->update(Array)\n#1 /var/www/helpdesk/include/class.dispatcher.php(145): DynamicFormsAjaxAPI->saveListItem('1', '1')\n#2 /var/www/helpdesk/include/class.dispatcher.php(38): UrlMatcher->dispatch('1/item/1/update', Array)\n#3 /var/www/helpdesk/include/class.dispatcher.php(120): Dispatcher->resolve('1/item/1/update', Array)\n#4 /var/www/helpdesk/include/class.dispatcher.php(38): UrlMatcher->dispatch('/list/1/item/1/...', NULL)\n#5 /var/www/helpdesk/scp/ajax.php(289): Dispatcher->resolve('/list/1/item/1/...')\n#6 {main}\n thrown in /var/www/helpdesk/include/class.list.php on line 1435
I have also changed cgi.fix_pathinfo on php.ini to '1' and restarted apache but the osTicket information it's still showing a red triangle.
People really need to start doing a search on Github first before creating issues/forum posts...
You need this:
https://github.com/osTicket/osTicket/pull/4758
Cheers.
I ended up changing the status on the database but this solved the issue as well.
thank you, and i will do my search properly on github next time.
htav Hi htav, May i ask how do you go about changing the status for db? and what changes is been done? Appreciate if you can guide me through. Still rather fresh from this system. Thank you!
hello! definitely, I accessed the database via phpMyAdmin and looked for the osTicket database and inside opened ost_ticket_status table. Once there, I just edited the properties of the status that I didn't wanted to reopen; basically I just changed "allowreopen: true" to false.
Now, I think what I did only works if you just want to disable or enable opening ticket by your users. If you want to make other changes, i will strongly advise that you just change the code in the source code of your osTicket installation following the url that KevinTheJedi provided. it's easier and is better if you might want to make changes in the future.
htav Hi htav, Thank you so much! I will try.
Hi, friends,
Have a look into your /var/log/php-fpm/www-error.log
If you have "strange dates" in it (2050+ year or something like) - go to OsTicket settings and remove all existing schedules: