Default exception handler: Exception - TCPDF ERROR

Default exception handler: Exception - TCPDF ERROR

by Larry Elchuck -
Number of replies: 0

The 3.3 version of custom certificate worked fine on my Moodle 3.3 (latest). Upon upgrading to Moodle 3.4 (latest) and the 3.4 (2017111300) version of custom certificate, I get the Default exception handler: Exception - TCPDF ERROR.

The customcert/error.log file generates the following:

Default exception handler: Exception - TCPDF ERROR: Some data has already been output to browser, can't send PDF file Debug: 
Error code: generalexceptionmessage
* line 2927 of /lib/tcpdf/tcpdf.php: Exception thrown
* line 7653 of /lib/tcpdf/tcpdf.php: call to TCPDF->Error()
* line 190 of /lib/pdflib.php: call to TCPDF->Output()
* line 311 of /mod/customcert/classes/template.php: call to pdf->Output()
* line 144 of /mod/customcert/view.php: call to mod_customcert\template->generate_pdf()

Ideas on a fix?

Average of ratings: -