tl;dr, skip to the fix.
If youâre getting issues like thisâŚ

Or thisâŚ

What should you do? Normally itâs good to open up your inspector, and make sure you check Log XMLHttpRequests as this will come in handy when you debug any Ajax requests.

But in our case, our CTO has already given us this link on Slack, so why not take a look at that?
If you were to compare your version of the nginx.conf versus the one shown in the link above, youâll find that there are some slight differences. So hereâs what you should do.
Locate the following location context (itâs the very last one inside your nginx.conf) and comment it out.
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $osticket_path$fastcgi_script_name;
include fastcgi_params;
}
Now go to the commented context immediately above and uncomment it.
location ~ \.php$ {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param PATH_INFO $path_info;
fastcgi_pass 127.0.0.1:9000;
}
Same same but different right? The reason lies in how osTicket routes its ajax.php API endpoint (e.g. ajax.php/report/overview/graph?period=now), and thatâs why youâd have to use the osTicket recipe posted on Nginx.
If youâre curious to know what happens under-the-hood, this article provides a comprehensive overview of how Nginx proxies requests over to PHP via FastCGI using the patterns specified in the location context and fastcgi_param parameters.
Now, the changes you made to nginx.conf will not be updated until you restart Nginx. Whatâs recommended is to run sudo service nginx reload to gracefully restart Nginx with the new configurations.
P.S. A graceful restart (the nginx reload command) tells the web sever to finish any active connections before restarting. This means that active visitors to your site will be able to finish downloading anything already in progress before the server restarts (source: here).
And thatâs it! Your osTicket tooltips and file uploads will work magically.
With â¤ď¸,
g6t8