Hi all,

I download the last version of pdfview, enabled it via administration/module, and, when I want to view the pdf of a node :

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/pdfview/tcpdf/tcpdf.php' (include_path='.;D:/Taf/mySite/www/sites/all/modules/civicrm/;D:/Taf/mySite/www/sites/all/modules/civicrm/\packages;.;C:\php5\pear') in D:\Taf\mySite\www\sites\all\modules\pdfview\pdfview.module on line 98

I really don't know why he show civicrm path on the error.... ???? and the tcpdf/tcpdf.php don't exist in the pdfview module package..

any ideas ?

thanks

zmove

Comments

adrienf’s picture

I am encountering similar issue.

drupalina’s picture

I've just installed the PDFview module and it gives me same problem.

When I went back the page had this warning:

warning: require_once(sites/all/modules/pdfview/tcpdf/tcpdf.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\mydatabase_name\sites\all\modules\pdfview\pdfview.module on line 98.

Any help or upgrade will be appreciated

thanks

jochenh’s picture

seems like you need to install tcpdf (see docs)

johnrosswvsu’s picture

Just go to tcpdf folder then to config folder and open tcpdf_config.php
find line 40 and 45 or look for something telling a directory erase the directory leaving 'tcpdf/' only. it would look like this
define ("K_PATH_MAIN", "tcpdf/");