ihsn / nada

National Data Archive (NADA) is an open source data cataloging system that serves as a portal for researchers to browse, search, compare, apply for access, and download relevant census or survey information. It was originally developed to support the establishment of national survey data archives.

Home Page:http://nada.ihsn.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDF Generation - error message when including Variable description

t3chbg opened this issue · comments

Hi Mehmood

We picking up that studies with over 2000 variables are timing out when we include variable description. I have increased the memory_limit and max_execution_time in php.ini. This error doesn't occur when we only choose variable list and external resources.

`An uncaught Exception was encountered
Type: Mpdf\MpdfException
Message: The HTML code size is larger than pcre.backtrack_limit 1000000. You should use WriteHTML() with smaller string lengths.

Filename: /var/www/html/nada5/vendor/mpdf/mpdf/src/Mpdf.php
Line Number: 26661

Backtrace:
File: /var/www/html/nada5/vendor/mpdf/mpdf/src/Mpdf.php
Line: 13159
Function: AdjustHTML

File: /var/www/html/nada5/application/libraries/Pdf_report.php
Line: 145
Function: WriteHTML

File: /var/www/html/nada5/application/controllers/admin/Pdf_generator.php
Line: 134
Function: generate

File: /var/www/html/nada5/application/controllers/admin/Pdf_generator.php
Line: 63
Function: _export_pdf

File: /var/www/html/nada5/index.php
Line: 343
Function: require_once`