When I add a PDF display to my view the following error on a WSOD appears:
Fatal error: require_once(): Failed opening required 'sites/all/libraries/tcpdf/tcpdf.php' (include_path='.:/usr/share/php:..') in /www/htdocs/…/sites/all/modules/views_pdf/views_pdf_template.php on line 16
I guess the is something wrong with the installed libraries but I can't solve it.
Here is my library files list:
sites/all/libraries/fpdi (directory)
sites/all/libraries/fpdi/filters (directory
sites/all/libraries/fpdi/filters/FilterASCII85_FPDI.php
sites/all/libraries/fpdi/filters/FilterASCII85.php
sites/all/libraries/fpdi/filters/FilterLZW_FPDI.php
sites/all/libraries/fpdi/filters/FilterLZW.php
sites/all/libraries/fpdi/fpdf_tpl.php (separately downloaded it and put it in here)
sites/all/libraries/fpdi/fpdi_pdf_parser.php
sites/all/libraries/fpdi/fpdi.php
sites/all/libraries/fpdi/fpdi2tcpdf_bridge.php
sites/all/libraries/fpdi/pdf_context.php
sites/all/libraries/fpdi/pdf_parser.php
sites/all/libraries/tcpdf (directory)
sites/all/libraries/tcpdf/Exception.php
sites/all/libraries/tcpdf/Tcpdf.php
Any help please?
Comments
Comment #2
marco.b CreditAttribution: marco.b as a volunteer commentedComment #3
aadil.addweb CreditAttribution: aadil.addweb at AddWeb Solution Pvt. Ltd. commentedYou need to change name of tcpdf.php instead of Tcpdf.php or Please install tcpdf library again and check.
Comment #4
marco.b CreditAttribution: marco.b as a volunteer commentedOk, thanks, I did that, but now I get another error:
Fatal error: Class 'TCPDF' not found in /www/htdocs/…/sites/all/libraries/fpdi/fpdi2tcpdf_bridge.php on line 29
hmmm?
Comment #5
aadil.addweb CreditAttribution: aadil.addweb at AddWeb Solution Pvt. Ltd. commentedPlease install "fpdi library" from https://www.setasign.com/products/fpdi/about and "tcpdf library" from https://github.com/tecnickcom/tcpdf and check.
Let me know if this works for you.
Comment #6
marco.b CreditAttribution: marco.b as a volunteer commentedThanks, now it works. Cool.
Comment #7
marco.b CreditAttribution: marco.b as a volunteer commentedComment #9
knight218 CreditAttribution: knight218 commentedstill getting error on the bridge thing, got libraries from link posted
Comment #10
chri5tia CreditAttribution: chri5tia commentedSame here. I downloaded from the inks above and updated views_pdf to the latest version. I am still getting an error that makes reference to a file that doesn't exist in the library files from the download:
Fatal error: require_once(): Failed opening required 'sites/all/libraries/fpdi/fpdi2tcpdf_bridge.php' (include_path='.:') in /sites/all/modules/contrib/views_pdf/views_pdf_template.php on line 22
Comment #11
miksha CreditAttribution: miksha commentedThis module needs FPDI library version 1.6.2. I got this by trial and error. Then it functions properly. TCPDF library can be newer.
https://www.setasign.com/downloads/1884275/FPDI-1.6.2.tgz
Comment #12
lbrassaw CreditAttribution: lbrassaw as a volunteer commentedThanks @miksha.
Indeed, version 2.x doesn't include the fpdi2tcpdf_bridge.php file that Views PDF is looking for.