PDF export failed
Moderator: Thorsten
PDF export failed
I just installed the 1.5.4 version of phpMyFAQ. Everything run normally, except when I want to export a question in PDF format. Here is the result :
Warning: main(fpdf.php): failed to open stream: No such file or directory in /home/sites/site22/web/faq/inc/pdf.php on line 28
Fatal error: main(): Failed opening required 'fpdf.php' (include_path='') in /home/sites/site22/web/faq/inc/pdf.php on line 28
What can I do?
Warning: main(fpdf.php): failed to open stream: No such file or directory in /home/sites/site22/web/faq/inc/pdf.php on line 28
Fatal error: main(): Failed opening required 'fpdf.php' (include_path='') in /home/sites/site22/web/faq/inc/pdf.php on line 28
What can I do?
If you look at inc/pdf.php, line 28, as written in your error:
that is to say, you are missing the file inc/fpdf.php: please check your file system if you've made mistakes in uncompressing the PMF 1.5.4 tar.gz/zip file
.
Code: Select all
require_once('fpdf.php');OS + ftp
I use ftp to put fles on the server.
And this is some information about the OS server :
- Linux
- Apache/1.3.20 Sun Cobalt (Unix)
- PHP 4.3.8
- MySQL 3.23.37
Rights :
- /faq/inc/ in 777
- /faq/inc/fpdf.php (39 kb) in 644
- /faq/inc/pdf.php (21 kb) in 644
- /faq/pdf/ in 777
And this is some information about the OS server :
- Linux
- Apache/1.3.20 Sun Cobalt (Unix)
- PHP 4.3.8
- MySQL 3.23.37
Rights :
- /faq/inc/ in 777
- /faq/inc/fpdf.php (39 kb) in 644
- /faq/inc/pdf.php (21 kb) in 644
- /faq/pdf/ in 777
Who is the owner of these files?
These rights are correct if the owner of the files&folders is the user under which Apache or the website is running.
Another check is to verify:
in order to evaluate if other errors could be masked by your current PHP errors setting.
Another check is to verify:
Code: Select all
grep error_reporting /etc/php.iniE_ALL & ~E_NOTICE
It reports:
The value 2039 stands for
. For trying to debug your issue it would be more useful to set it as:
, or set the value to 2047.
Make sure you restart Apache before trying the pdf export.
Code: Select all
error_reporting 2039Code: Select all
E_ALL & ~E_NOTICECode: Select all
E_ALLMake sure you restart Apache before trying the pdf export.
Hi,
your include path is wrong. Just add a . into your php.ini file for the include path and it should work.
bye
Thorsten
your include path is wrong. Just add a . into your php.ini file for the include path and it should work.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
you can add an ini_set() function in inc/init.php because this file is included first in phpMyFAQ. Mor information: http://www.php.net/manual/en/function.ini-set.php
bye
Thorsten
you can add an ini_set() function in inc/init.php because this file is included first in phpMyFAQ. Mor information: http://www.php.net/manual/en/function.ini-set.php
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist