Artem Posted March 4, 2013 Share Posted March 4, 2013 (edited) Hello. I cant generate any invoices. Either its through test customers, or in back office when i try to generate invoice. It just sends me to blank page, no errors appear. Didnt find a similar problem on forum solutions. How can i solve it? PS v1.4.9 Edited March 7, 2013 by Artem (see edit history) 1 Link to comment Share on other sites More sharing options...
adser Posted March 4, 2013 Share Posted March 4, 2013 Hi ... I posted a in januari the same problem. Not a lot reaction on my post and no solution came out ... but you can read what they say to me on http://www.prestashop.com/forums/topic/218337-can-not-create-pdf-documents/page__p__1077855#entry1077855 Link to comment Share on other sites More sharing options...
Artem Posted March 4, 2013 Author Share Posted March 4, 2013 Heh, it seems like when they dont know the answer, they choose to ignore the problem. Link to comment Share on other sites More sharing options...
manch84 Posted March 4, 2013 Share Posted March 4, 2013 dear Artem, have you got the same problem? Link to comment Share on other sites More sharing options...
Artem Posted March 4, 2013 Author Share Posted March 4, 2013 I dont think so, cause for me it just sends me to blank page. It doesnt show any error or anything. Link to comment Share on other sites More sharing options...
Artem Posted March 4, 2013 Author Share Posted March 4, 2013 (edited) thats the error im getting Warning include_once(public_html/tools/tcpdf/tcpdf.php) 'function.include-once': failed to open stream: No such file or directory in /public_html/override/classes/PDF.php on line 31 Warning: include_once() function.include]: Failed opening '/public_html/tools/tcpdf/tcpdf.php' for inclusion :/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /public_html/override/classes/PDF.php Fatal error Class 'TCPDF' not found in /public_html/override/classes/PDF.php on line 33 Edited March 4, 2013 by Artem (see edit history) Link to comment Share on other sites More sharing options...
Artem Posted March 4, 2013 Author Share Posted March 4, 2013 i dont have tcpdf folder, i have fpdf folder, same goes for tcpdf.php Link to comment Share on other sites More sharing options...
jberezhnoy Posted March 4, 2013 Share Posted March 4, 2013 Hi, Try to download prestashop installation package, extract tcpdf folder's content & upload to appropriate folder on your site Then check the outcome Link to comment Share on other sites More sharing options...
Artem Posted March 5, 2013 Author Share Posted March 5, 2013 I've added tcpdf folder from 1.5.3, cause in 1.4.8 or 9, there are no such folders. Now im getting this error: TCPDF ERROR: Could not include font definition file: dejavusanscondensed Link to comment Share on other sites More sharing options...
jberezhnoy Posted March 5, 2013 Share Posted March 5, 2013 Strange thing... interesting to know what has caused the original problem (i mean blank page instead mentioned in your 1st post). Now it seems that tcpdf requires this font "TCPDF ERROR: Could not include font definition file: dejavusanscondensed" If you have this font - please put it into the folder "...tools\tcpdf\fonts" Otherwise you can try to change the font in configuration : in the file classes/pdf/PDFGenerator.php find a string (in the very beginning) const DEFAULT_FONT = ‘helvetica’; in your case it's probably not helvetica but 'dejavusanscondensed' or something like this try to replace this line as follows const DEFAULT_FONT = ‘freeserif’; And tell us if something changes Link to comment Share on other sites More sharing options...
Artem Posted March 5, 2013 Author Share Posted March 5, 2013 I didnt have /pdf/pdfgenerator.php, so i added folder from 1.5.3, and changed const DEFAULT_FONT to freeserif. still getting the same error Link to comment Share on other sites More sharing options...
jberezhnoy Posted March 5, 2013 Share Posted March 5, 2013 bad news (( try to put the missing font in the appropriate tcpdf folder I've googled for this file and was able to download it from the first link http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDEQFjAA&url=http%3A%2F%2Fwww.bvbcode.com%2Fcode%2Fa620fisr-733584-down&ei=3M01UY7WF6n14QSw3IEY&usg=AFQjCNEPWssK_sPRzA-6FOo_BBYfIrDSiw&bvm=bv.43148975,d.bGE&cad=rja Link to comment Share on other sites More sharing options...
tuk66 Posted March 7, 2013 Share Posted March 7, 2013 Mixing folders or files from different version is not good thing. I think you have an installation problem. Check if your PrestaShop installation contains all folders and files for the right version. FTP upload sometime failed. Link to comment Share on other sites More sharing options...
Artem Posted March 7, 2013 Author Share Posted March 7, 2013 where can i find a proper version of PS v1.4.9? Link to comment Share on other sites More sharing options...
tuk66 Posted March 7, 2013 Share Posted March 7, 2013 http://sourceforge.net/projects/prestashop/files/prestashop%20v1/ Link to comment Share on other sites More sharing options...
Artem Posted March 7, 2013 Author Share Posted March 7, 2013 thank you tuk66. but again, there is no tcpdf directory in 1.4.9 that i downloaded from the link that you gave me. maybe something is wrong with my DB version. is it possible for you to help me out, what do i need to change in database for invoices to work? Link to comment Share on other sites More sharing options...
tuk66 Posted March 7, 2013 Share Posted March 7, 2013 Oh, you probably have an uncompatible module which overrides /override/classes/PDF.php file. V1.4.9.0 doesn't use tcpdf library. Link to comment Share on other sites More sharing options...
Artem Posted March 7, 2013 Author Share Posted March 7, 2013 and how can i find this module? any specific ones you would advise me to look for? or just checking one by one? Link to comment Share on other sites More sharing options...
tuk66 Posted March 7, 2013 Share Posted March 7, 2013 Check time of the PDF.php file change and try to find all third-party modules in /modules directory. Link to comment Share on other sites More sharing options...
Artem Posted March 7, 2013 Author Share Posted March 7, 2013 strange. i did what you've told me. pdf.php in override/classes was changed last time 5th february. none of the modules were changed on that day. Link to comment Share on other sites More sharing options...
tuk66 Posted March 7, 2013 Share Posted March 7, 2013 (edited) Rename /override/classes/PDF.php and you will see what failed. Edited March 7, 2013 by tuk66 (see edit history) Link to comment Share on other sites More sharing options...
Artem Posted March 7, 2013 Author Share Posted March 7, 2013 thank you tuk66! renamed the file, then tried using every single module, everything was working properly, and then i tried to download invoice and it worked, lol. thank you once more! Link to comment Share on other sites More sharing options...
Recommended Posts