KevinTheJedi
Hello everyone,
Sorry, I didn't see this before.
I can test them if you want.
I've change the code:
} catch (Exception $ex) {
// $errors['err'] = __('Unable to prepare the export');
// Handle any exceptions that occur during the export process
// Log the error or display an error message to the user
echo "An error occurred: " . $e->getMessage();
}
Into:
} catch (Throwable $ex) {
// $errors['err'] = __('Unable to prepare the export');
// Handle any exceptions that occur during the export process
// Log the error or display an error message to the user
echo "An error occurred: " . $e->getMessage();
}
And get the errors on console:
2025-01-22 11:24:35 Warning xx.xx.xx.xx mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to a member function getMessage() on null in /var/www/vhosts/mysite.xx/support.mysite.xx/include/ajax.tickets.php:2068, referer: https://support.mysite.xx/scp/tickets.php?queue=6 Errore di Apache
2025-01-22 11:24:35 Warning xx.xx.xx.xx mod_fcgid: stderr: Stack trace:, referer: https://support.mysite.xx/scp/tickets.php?queue=6 Errore di Apache
2025-01-22 11:24:35 Warning xx.xx.xx.xx mod_fcgid: stderr: #0 /var/www/vhosts/mysite.xx/support.mysite.xx/include/ajax.tickets.php(2007): TicketsAjaxAPI->queueExport(), referer: https://support.mysite.xx/scp/tickets.php?queue=6 Errore di Apache
2025-01-22 11:24:35 Warning xx.xx.xx.xx mod_fcgid: stderr: #1 /var/www/vhosts/mysite.xx/support.mysite.xx/include/class.dispatcher.php(153): TicketsAjaxAPI->export(), referer: https://support.mysite.xx/scp/tickets.php?queue=6 Errore di Apache
2025-01-22 11:24:35 Warning xx.xx.xx.xx mod_fcgid: stderr: #2 /var/www/vhosts/mysite.xx/support.mysite.xx/include/class.dispatcher.php(40): UrlMatcher->dispatch(), referer: https://support.mysite.xx/scp/tickets.php?queue=6 Errore di Apache
2025-01-22 11:24:35 Warning xx.xx.xx.xx mod_fcgid: stderr: #3 /var/www/vhosts/mysite.xx/support.mysite.xx/include/class.dispatcher.php(119): Dispatcher->resolve(), referer: https://support.mysite.xx/scp/tickets.php?queue=6 Errore di Apache
2025-01-22 11:24:35 Warning xx.xx.xx.xx mod_fcgid: stderr: #4 /var/www/vhosts/mysite.xx/support.mysite.xx/include/class.dispatcher.php(40): UrlMatcher->dispatch(), referer: https://support.mysite.xx/scp/tickets.php?queue=6 Errore di Apache
2025-01-22 11:24:35 Warning xx.xx.xx.xx mod_fcgid: stderr: #5 /var/www/vhosts/mysite.xx/support.mysite.xx/scp/ajax.php(327): Dispatcher->resolve(), referer: https://support.mysite.xx/scp/tickets.php?queue=6 Errore di Apache
2025-01-22 11:24:35 Warning xx.xx.xx.xx mod_fcgid: stderr: #6 {main}, referer: https://support.mysite.xx/scp/tickets.php?queue=6 Errore di Apache
2025-01-22 11:24:35 Warning xx.xx.xx.xx mod_fcgid: stderr: thrown in /var/www/vhosts/mysite.xx/support.mysite.xx/include/ajax.tickets.php on line 2068, referer: https://support.mysite.xx/scp/tickets.php?queue=6 Errore di Apache