Good morning everyone,
on osticket installation 1.16.6 on platform
Linux 5.15.0-72-generic #79-Ubuntu SMP Wed Apr 19 08:22:18 UTC 2023 x86_64
Ubuntu + plesk - php v. 8.0.29
When printing it does not load the page and issues http 500 error
Good morning everyone,
on osticket installation 1.16.6 on platform
Linux 5.15.0-72-generic #79-Ubuntu SMP Wed Apr 19 08:22:18 UTC 2023 x86_64
Ubuntu + plesk - php v. 8.0.29
When printing it does not load the page and issues http 500 error
error log
AH01071: Got error 'PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in /var/www/vhosts/DOMAIN/httpdocs/roadmap1/include/mpdf/vendor/mpdf/mpdf/src/Image/ImageProcessor.php on line 661', referer: http://DOMAIN/roadmap1/scp/tickets.php?id=1
It's taking to long to generate the PDF and timing out. You can update your PHP and Apache max_execution_time settings to add more time. Is it a big Ticket?
Cheers.
Good evening,
no it is a small ticket but with several data tables. It happens with all tickets, even empty ones
Best regards!
Do you see any related errors or just the time out? I can’t think of anything that would cause this if it’s happening with all tickets. Unless the database is slow (poor resources on the server, MySQL isn’t optimized, etc.).
Cheers.
Hello, no there are no further related errors, just that message in the log files.
I tried to make the change via plesk>php bringing it from 120 to 50000 but the problem persists with the same error
line 660.-663
// extract image without alpha channel
$imgplain = imagecreatetruecolor($w, $h);
imagealphablending($imgplain, false); // mPDF 5.7.2
imagecopy($imgplain, $im, 0, 0, 0, 0, $w, $h);
Regards
Good evening everyone.
Unfortunately the problem still persists, I've tried them all and I don't know where to go to get my hands
Set max_execution_time to 0 (to disable) and retest. Be careful with this though, this is only to test to see if this will allow it to actually generate a PDF.
Cheers.
Any luck?