Php.ini memory_limit (how much does the PDF system need?), 1024M and it still throws http500 error

Hi

I am getting a http500 error when trying to review any PDF templates:

Modules > Sales order
proforma, eratostheme, eistein

Modules > Invoice
sponge, crabe

The apache error log says:
[Wed Sep 02 02:43:38.566002 2020] [php7:error] [pid 22484:tid 3944] [client 192.168.1.51:20821] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in C:\WWW\root\erpgriffcommca\includes\tecnickcom\tcpdf\tcpdf.php on line 7824, referer: https://xxx.xxx.xx/

We have wordpress sites on this Apache and they were happy with 128Mb in the php.ini, its up to 1024Mb and its still throws this error, so how much does the PDF engine need? (or is there another bug?)

Many Thanks

For others who arrive here, we found the issue (technically a bug !)

We changed the US Letter and US Legal to inches in Dictionaries, that created this http 500 error !
Setup > Dictionaries > Paper Formats
USLetter
USLegal

Both are back to mm and its now ok !

1 Like

Is this a bug? why would setting papersize to inches throw a http 500 internal server error? we changed it as US papersizes are imperial…

Hi,

This is most probably a bug.
If you have time, you can report it to GitHub : https://github.com/Dolibarr/dolibarr/issues/new/choose