I had webform setup and working. I added the webform2pdf module and download the tcpdf php libraries. (sites\all\libraries\tcpdf\tcpdf.php) I edited my form to attach a pdf. I then clicked the download pdf link in the results page and instantly received an HTTP 500 error. If I try to send the email, I get the same error.

Comments

danbrag’s picture

Hey there,

I had the same problems with my install. Try the following:

  1. Find all mentions of AliasNbPages() and change it to getAliasNbPages()
  2. In webform2pdf.install on line 388, comment out the function to get the version number. Then create a new line with $version = '4.5.001'; -- I don't know what the updated function is for the version number, so I made a manual workaround. It seems like the PDFs are working now.

- Dan

daniel larrotta’s picture

I have the same problem even I tried the Danbrag´s solution. ...another that works?

Thanks

Anonymous’s picture

I searched all files in the \webform2pdf folder and updated all references of AliasNbPages() to getAliasNbPages(). I then updated the .install files with $version = '4.5.001';. I flushed all cache and still had the same problem.

yoran scholiers’s picture

Same problem here. Tips in #2 didn't work.
The Drupal Status page was accessible again, but generation of pdf files still resulted in a "500"...

mr.york’s picture

Status: Active » Closed (duplicate)
StatusFileSize
new2.23 KB