I'm getting the above error when clicking the link on the user account page. I tested the install of tcpdf using the test_unicode.php file and this was fine. What are the possible causes of this error?

Comments

jredding’s picture

the path to the tcpdf library must be configured on the module's settings page. The module's settings page will also test to see if it can correctly initialize tcpdf.

Nikkol’s picture

Yes, I checked the path. It was correct. I clicked the Save Configuration button several times and now I get the following error when clicking the link to the ID card:

Parse error: syntax error, unexpected $end in /home/kystene/public_html/sites/all/modules/PDF-IDcard/pdfidcard.module(599) : eval()'d code on line 3
TCPDF error: Some data has already been output to browser, can't send PDF file

When clicking the back button I get a warning:

warning: Cannot modify header information - headers already sent by (output started at /home/kystene/public_html/sites/all/modules/PDF-IDcard/pdfidcard.module(599) : eval()'d code:3) in /home/kystene/public_html/sites/all/modules/PDF-IDcard/tcpdf/tcpdf.php on line 2931.

jredding’s picture

the error is coming from the eval()d code which is the code in the template. I'd suggest removing all of the code from the template and then trying again. Once its working put the code back check it for errors and then try again.

Nikkol’s picture

I haven't had time to test this yet ... kinda low on my to-do list at the moment, but once I do, I'll report back with the results.

jredding’s picture

Status: Active » Closed (fixed)

Closing this as the question has been answered and no updated have been made.