Jump to content

[SOLVED] Error when viewing pdf invoice


Recommended Posts

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

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

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

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

×
×
  • Create New...