Jump to content

Found out another bug on v1.3.2 - pdf file can't be opened!


Recommended Posts

when the user click the pdf invoice at "My Account", it display an error to user:

FPDF error: Not a JPEG file: /home/lovestat/public_html/img//logo.jpg

Obviously, there is a "//" before the logo.jpg. I am wondering if somebody knows how to fix this? thanks so mcuh!

Share this post


Link to post
Share on other sites

Try changing lines 139-140 of classes/PDF.php from:

if (file_exists(_PS_IMG_DIR_.'/logo.jpg'))
   $this->Image(_PS_IMG_DIR_.'/logo.jpg', 10, 8, 0, 15);



to:

if (file_exists(_PS_IMG_DIR_.'logo.jpg'))
   $this->Image(_PS_IMG_DIR_.'logo.jpg', 10, 8, 0, 15);



Looks like another bug worth reporting on the bug tracker.

Share this post


Link to post
Share on other sites

  • 2 months later...

BUMP:

Hi guys i am having the same issue as above. I removed the / from PDF.php but i still get the error FPDF error: Not a JPEG file: /home/intrat/public_html/something.com.au/img/logo.jpg

any ideas wat to do. i am using version 1.3.5

Share this post


Link to post
Share on other sites

  • 1 month later...
  • 2 months later...
solved. thanks
hello, can u tell me please how you resolve this problem with PDF eror?? Thank you.


How did you solve this?
I have same problem running version 1.4.1

FPDF error: Not a JPEG file:

Share this post


Link to post
Share on other sites

 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More