I'm getting the following error when trying to get a PDF of a form submission:
Fatal error: Call to undefined method W2PDF::AliasNbPages() in .../sites/all/modules/webform2pdf/includes/webform2pdf.download.inc on line 26
It appears that the method AliasNbPages() has been renamed in the tcpdf library and the new name is getAliasNbPages(). This affects lines 26 and 143 of webform2pdf.download.inc and line 616 of webform2pdf.module.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | issue-1950550-7-webform2pdf.AliasNbPages-deprecated.patch | 2.23 KB | mr.york |
Comments
Comment #1
BaraSoft2 commentedI have the same probelm any suggestions?
Comment #2
BaraSoft2 commentedComment #3
ffucito commentedSame problem. Seems to be a non compatibility with tcpdf.
Comment #4
pene commentedSame here at admin/reports/status. So I can not see my page's status without disabling the modul. 7.x-3.0
Comment #5
obisean commentedThe function name should be getAliasNbPages() not AliasNbPages(). There are three calls to this function, one in webform2pdf.module and 2 in webform2pdf.download.inc
Once I changed the the function name to getAliasNbPages() in these two files it worked
Comment #6
RyanPrice commentedCan confirm #5 solves the issue.
Comment #7
mr.york commentedHere is the patch which fixes the bug.
Comment #8
duksh commentedHi Mr. York, am sorry for asking this beginner's question but I've never been able to figure out how to use the patch files provided for Drupal modules. I am having the error that your patch is supposed to address, could you please explain how and where do I apply the patch file you provided? sorry for taking your time on this. Thanks
Comment #9
krh121791 commentedI can confirm that #5 fixes the issue. The function should be getAliasNbPages() in the file webform2pdf.download.inc on line 20.
Comment #10
houmem commented#7 fixes the issue, it works for me
Comment #11
RyanPrice commentedComment #12
cybermache commentedAfter making these changes I get this error
Strict warning: Declaration of W2PDF::setHeaderData() should be compatible with TCPDF::setHeaderData($ln = '', $lw = 0, $ht = '', $hs = '', $tc = Array, $lc = Array) in include_once() (line 9 of .../sites/all/modules/webform2pdf/webform2pdf.class.inc).Comment #13
mr.york commentedThank you. Commited.