You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
in Moodle 3.3.6, custom certificate 3.3.14, 2017050514, after clicking Save changes and preview there is an error: exception - TCPDF ERROR: Some data has already been output, can't send PDF file
×Debug info:
Error code: generalexceptionmessage
×Stack trace:
line 2927 of /lib/tcpdf/tcpdf.php: Exception thrown
line 7643 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 233 of /mod/customcert/edit.php: call to mod_customcert\template->generate_pdf()
Any changes in plugin to fix this error?
The text was updated successfully, but these errors were encountered:
mdjnelson added the Waiting for response label Jul 23, 2018 CognitaDev commented Jul 23, 2018Hi,
thanks for the reply. Save changes and preview isn't working from start. This is the only certificate and it contains background image (A4) and one text box. Perhaps removing plugin and installing it again could fix the issue?
Is there any information in the 'Output buffer' which can tell me what is displayed?
For example, I intentionally triggered this error by outputting the string 'hey' and the error message included this string in the output next to 'Output buffer'. See screenshot -
CognitaDev commented Jul 24, 2018There is no information in output buffer.
I enabled chrome dev console, and there's an error: Failed to load resource: the server responded with a status of 404 (Not Found) /mod/customcert/edit.php:1
+1 Also happening to me.
psywhale commented Aug 16, 2018Moodle 3.4.3 (Build: 20180517)
git pulled branch MOODLE_34_STABLE
module version: 2017111305
404 error is now from view.php
mdjnelson commented Aug 23, 2018@psywhale that sounds like a permission issue with the view.php file. Have you checked permissions?
psywhale commented Aug 23, 2018Yes I have.
I get the 404 only when I try to download or preview the Cert
When I Download the cert:
When I save and preview the cert
This is in the apache error log:
[Thu Aug 23 08:38:36.986708 2018] [:error] [pid 25762] [client :63922] Default exception handler: Exception - TCPDF ERROR: Some data has already been output, can't send PDF file Debug: \nError code: generalexceptionmessage\n* line 2927 of /lib/tcpdf/tcpdf.php: Exception thrown\n* line 7649 of /lib/tcpdf/tcpdf.php: call to TCPDF->Error()\n* line 190 of /lib/pdflib.php: call to TCPDF->Output()\n* line 311 of /mod/customcert/classes/template.php: call to pdf->Output()\n* line 185 of /mod/customcert/view.php: call to mod_customcert\\template->generate_pdf()\n, referer: https://moodle.wosc.edu/mod/customcert/view.php?id=26160
output buffer issues, perhaps.
I have added these lines to view.php to try to fix / diagnose problem:
Incognito mode, so no plugins will interfere, I get 3 blank lines in my output buffer.