osticket v1.14.1 (f1e9e88)
php 7.3.13
Export Ticket not working
No webserver software listed.
The "white bar of death" means that your webserver is not answering AJAX requests.
- Edited
I assume you are using a shared host with strict rules via mod_sec or something similar. If this is the case, you will need to go to include/class.http.php
, go to the flush()
method, and add the following code between while(@ob_end_flush());
and flush();
:
// Echo whitespaces to flush request - shared hosts
echo str_pad("",1024," ");
echo "<br/>";
So afterwards it should look like:
function flush($code, $content, $contentType='text/html', $charset='UTF-8') {
self::response($code, null, $contentType, $charset);
header('Cache-Control: no-cache, must-revalidate');
header('Content-Length: '.strlen($content)."\r\n\r\n");
print $content;
// Flush the request buffer
while(@ob_end_flush());
// Echo whitespaces to flush request - shared hosts
echo str_pad("",1024," ");
echo "<br/>";
flush();
// Terminate the request
if (function_exists('fastcgi_finish_request'))
fastcgi_finish_request();
}
Cheers.
- Edited
hosted in bluehost
- Edited
i applied the code and the white bar disappear and nothing happens... btw hosted in bluehost
- Edited
Hmmmm..that’s the same host I was testing with and that code resolved my issues. Are you sure you applied the code correctly? Do you see any related errors in the browser console logs in the browser inspect mode, network tab in the browser inspect mode, php error logs, or Apache error logs?
Edit:
I'll check tomorrow but I’m sure I don’t have any php.ini settings nor any special Apache settings.
Cheers.
Looks like you have a syntax error somewhere (possibly in scp.js
) and I think that might have something to do with it as well. I would take a backup of your current osTicket directory, move all of the files in the osTicket directory to a separate directory temporarily, download v1.14.1 from our website, upload the ZIP to your osTicket directory (which should now be clean), unzip it, move all the contents of the upload/
directory to your osTicket directory, copy over your ost-config.php
file from your backup to the include/
directory, and retry the export. If that doesn’t work apply the following code to see if that fixes it:
function flush($code, $content, $contentType='text/html', $charset='UTF-8') {
self::response($code, null, $contentType, $charset);
header('Cache-Control: no-cache, must-revalidate');
header('Content-Length: '.strlen($content)."\r\n\r\n");
// Disable buffering and compression - shared hosts
ini_set('output_buffering', 'Off');
ini_set('zlib.output_compression', false);
print $content;
// Flush the request buffer
while(@ob_end_flush());
// Implicit flush - shared hosts
ini_set('implicit_flush', true);
ob_implicit_flush(true);
// Set content type and disable caching - shared hosts
header('Content-Type: text/plain');
header('Cache-Control: no-cache');
// Echo whitespaces to flush request - shared hosts
for ($i = 0; $i < 1000; $i++) {
echo ' ';
}
flush();
// Terminate the request
if (function_exists('fastcgi_finish_request'))
fastcgi_finish_request();
}
I hope this helps. Cheers.