Task #1977
Getting PHP Warnings which loop and cause server to run out of memory
0%
Description
HI,
I'm running a PHP program printing out some PDF lines which works fine on my local server - Apache XAMPP v3.3.0 - PHP v 7.3.29 but when I run on our live 1&1 Server with same PHP and same error reporting msg levels (E_ALL) . I get 1/2 GIG of warning msgs and it eventually runs out of memory. Can you give me any advice on what/why it calls your tcpf_fonts.php at line 2002 ? and what for?
Why would it loop round thousands of times causing the warnings ?
Error_log entries which get repeated until the final out of memory line:-
[28-Jul-2021 15:19:17 Europe/Dublin] PHP Warning: array_map(): Expected parameter 2 to be an array, bool given in homepages/42/d267719562/htdocs/skyline/PDFvendor/vendor/tecnickcom/tcpdf/include/tcpdf_fonts.php on line 2002
[28-Jul-2021 15:19:17 Europe/Dublin] PHP Warning: array_merge(): Expected parameter 2 to be an array, null given in /homepages/42/d267719562/htdocs/skyline/PDFvendor/vendor/tecnickcom/tcpdf/include/tcpdf_fonts.php on line 2010
[28-Jul-2021 15:19:17 Europe/Dublin] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/42/d267719562/htdocs/skyline/PDFvendor/library/interpid/PdfLib/Multicell.php on line 505
[28-Jul-2021 15:19:44 Europe/Dublin] PHP Fatal error: Out of memory (allocated 849350656) (tried to allocate 20480 bytes) in /homepages/42/d267719562/htdocs/skyline/PDFvendor/library/interpid/PdfLib/Multicell.php on line 655
Could you advise where to start with this one ?
Many Thanks
Jerry