Closed NicoDucou closed 2 weeks ago
In the web server error log we can see that the error comes from vendor/mpdf/mpdf/src/Mpdf.php
PHP Fatal error: Uncaught Mpdf\\MpdfException: The HTML code size is larger than pcre.backtrack_limit 1000000. You should use WriteHTML() with smaller string lengths. Pass your HTML in smaller chunks. in /.../vendor/mpdf/mpdf/src/Mpdf.php
The solution is to adapt the php configuration for the setting pcre.backtrack_limit
php_value pcre.backtrack_limit 10000000
pcre.backtrack_limit=10000000
In Chamilo 1.11.28 when trying to generate a big PDF it generates an error 500 and a blank page.