Bijan Posted March 5, 2012 Share Posted March 5, 2012 Version 1.4.3 I moved the site from one hosting to another. Everything seems to work fine until I notice when I try to view a pdf invoice in orders I get this error: Both hosting are linux with same settings. Warning: include_once(_PS_FPDF_PATH_fpdf.php) [function.include-once]: failed to open stream: No such file or directory in /home/orogoldo/public_html/admin111/pdf.php on line 15 Warning: include_once() [function.include]: Failed opening '_PS_FPDF_PATH_fpdf.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/orogoldo/public_html/admin111/pdf.php on line 15 Fatal error: Class 'FPDF' not found in /home/orogoldo/public_html/admin111/pdf.php on line 17 Any ideas what could cause this problem? Thank you Bijan Link to comment Share on other sites More sharing options...
tomerg3 Posted March 5, 2012 Share Posted March 5, 2012 Looks like your new host may not have fpdf extension. Try asking them to install it. Link to comment Share on other sites More sharing options...
Bijan Posted March 5, 2012 Author Share Posted March 5, 2012 We have other prestashops on the same server and they work fine. Are you sure that's the reason? Looks like your new host may not have fpdf extension. Try asking them to install it. Link to comment Share on other sites More sharing options...
tomerg3 Posted March 5, 2012 Share Posted March 5, 2012 Then probably not Make sure that all the files the come with the PS install are there (in the admin folder) Link to comment Share on other sites More sharing options...
Bijan Posted March 5, 2012 Author Share Posted March 5, 2012 I downloaded all files via filezilla and then uploaded all via filezilla as well. I uploaded the whole admin folder once again but it didn't work. Then probably not Make sure that all the files the come with the PS install are there (in the admin folder) Link to comment Share on other sites More sharing options...
tomerg3 Posted March 5, 2012 Share Posted March 5, 2012 Try to copy /home/orogoldo/public_html/admin111/pdf.php again. Also try to use binary mode when uploading files. Link to comment Share on other sites More sharing options...
Bijan Posted March 5, 2012 Author Share Posted March 5, 2012 Just did that. Same error. Try to copy /home/orogoldo/public_html/admin111/pdf.php again. Also try to use binary mode when uploading files. Link to comment Share on other sites More sharing options...
tomerg3 Posted March 5, 2012 Share Posted March 5, 2012 I don't think you are using the right file. admin/pdf.php doesn't have any code on line 15, so you must be using a modified or incorrect file. Link to comment Share on other sites More sharing options...
Bijan Posted March 5, 2012 Author Share Posted March 5, 2012 You're right. I just looked at the old server and I see 2 pdf files. One was CAP and one lowercase. I used the other one and it worked. Thank you so much. I don't think you are using the right file. admin/pdf.php doesn't have any code on line 15, so you must be using a modified or incorrect file. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 5, 2012 Share Posted March 5, 2012 Thanks tomerg3! I'll go ahead and mark this thread as solved. -Mike Link to comment Share on other sites More sharing options...
Recommended Posts