PingEx.com Posted November 5, 2008 Share Posted November 5, 2008 HI guys Im trying to download the PDF and getting this error TCPDF error: Missing or incorrect image file: /tmp/jpg5pQZUs is that server fault or anything else? David 0 Quote Link to comment Share on other sites More sharing options...
Iceman Posted November 6, 2008 Share Posted November 6, 2008 (edited) Getting the same problem since upgrading from 3.6.2. I am about to submit a support ticket as it has stopped all invoices from being generated!!! It seems that the following was altered in pdfconfig.php From: $pdf->Image(dirname(__FILE__).'/../images/logo.jpg',20,25); To: $pdf->Image(ROOTDIR.'/images/logo.jpg',20,25); But neither of the above now works, so it seems to point to a global change being made with the code. Cheers, Paul Edited November 6, 2008 by Iceman 0 Quote Link to comment Share on other sites More sharing options...
Iceman Posted November 6, 2008 Share Posted November 6, 2008 (Firstly I must have been running 3.6.1 not 3.6.2.) Solution for those with this issue is below: Anyone upgrading or installing a version greater than 3.6.1 and with Open_basedir ENABLED will need to edit /includes/tcpdf.php Find the line: $tempname = tempnam(K_PATH_CACHE,'jpg'); And replace K_PATH_CACHE with the absolute path to the tmp directory. eg '/home/me/tmp' or what ever is the exact path. So it will look like $tempname = tempnam('/home/me/tmp','jpg'); Cheers, Paul 0 Quote Link to comment Share on other sites More sharing options...
PingEx.com Posted November 7, 2008 Author Share Posted November 7, 2008 Still not working for me, does not look like the emails getting sent either,... support ticket time david 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.