chamilo / chamilo-lms

Chamilo is a learning management system focused on ease of use and accessibility
https://chamilo.org
GNU General Public License v3.0
811 stars 481 forks source link

Chamilo 1.11.28 Big PDF files are not generated #5918

Closed NicoDucou closed 2 weeks ago

NicoDucou commented 2 weeks ago

In Chamilo 1.11.28 when trying to generate a big PDF it generates an error 500 and a blank page.

NicoDucou commented 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