I get this error when i try to download my pages to pdf
Fatal error: require_once() [function.require]: Failed opening required 'modules/addmodules/pdfview/tcpdf/tcpdf.php' (include_path='.;C:\php5\pear') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\allensworld\modules\addmodules\pdfview\pdfview.module on line 98
Does anyone no how to fix it?
Drupal 5.0
Configuration file Protected
Cron maintenance tasks Last run 6 min 55 sec ago
You can run cron manually.
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.28 compatible)
MySQL database 5.0.24
PHP 5.1.5
Unicode library PHP Mbstring Extension
Web server Apache/2.2.3 (Win32) PHP/5.1.6
Comments
pdfview needs tcpdf
You need to have tcpdf (http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf) uploaded into the folder pdfview/tcpdf so that the file tcpdf.php is in that folder. The error message that you get tells you basically that this file is expected in the folder modules/addmodules/pdfview/tcpdf but isn't there.
ok,
Now that i got that file in the right directory and i set up the config for it i get this error
Parse error: parse error, unexpected T_STRING in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\allensworld\modules\addmodules\pdfview\tcpdf\config\tcpdf_config.php on line 45
These are my settings
What changes should i make?
Lets look at the error message
It tells you there is something (most likely some text) wrong in line 45:
Parse error: parse error, unexpected T_STRING in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\allensworld\modules\addmodules\pdfview\tcpdf\config\tcpdf_config.php on line 45
My guess would be that line 45 is this one:
There are a few problems with it. first, the internet doesn't like upper case and spaces, so getting rid of these would be perfect but most likely not possible at this point. For the future, try to install your appache in a different folder, one that isn't placed in Program Files...
However, I don't think this is the major problem here, its more to do with the slash \. Having looked at the example config file, there is nowhere this slash, its always the other one: / - you've got quite a few of those \ in your settings, replace all of them with this one / and you should be fine, if not it might be the upper cases and spaces there.
actually this is line
actually this is line 45
define ("K_PATH_URL", "http://www.allensworld.org/modules/addmodules/pdfview/tcpdf/");
but ill try to change all the slashes...
Just tryed it and it worked... I just changed them on the whole page and it seemed to work..
Thanks alot. You have any idea
with my problem with mutlidomain http://drupal.org/node/112787
or site Cache http://drupal.org/node/111281
Well, one problem solved then...
... unfortunately I can't help you with the other two since I haven't worked with multidomains yet nor have done anything with Drupal 5 or know about the error messages there. Try maybe another forum for the latter, I see that you posted it to the Developer groups, try posting it in the Support > upgrade forum.
I know what the problem is...!
If you change the \ to / in the path it will work. The problem is \t (it is a escaped tab)
"C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\allensworld\modules\addmodules\pdfview\tcpdf\"
"C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/allensworld/modules/addmodules/pdfview/tcpdf/"
Thanks
Thanks to both of yall
Php 5 required?
Am I correct in thinking that PDFview requires TCPDF, which requires PHP 5?
Stefan Wray
Not Necessarily
tcpdf has 2 versions for php4 and php5 respectively. So, based on your configuration, you've got to choose your tcpdf version. And yes, pdfview requires tcpdf.