aurekl38 Posted December 13, 2012 Share Posted December 13, 2012 (edited) Hi all, I have a problem since the update to version 1.5 of Prestashop: Invoices are not generated, a blank page! The generation of delivery notes is OK. But this bill is very inconvenient for customers and my accounts. Firebug tells me errors: "NetworkError: 500 Internal Server Error - Big thank you in advance! Aurélien [french] Le problème venait du module "custom invoice" non compatible avec la V1.5 Edited December 15, 2012 by aurekl38 (see edit history) Link to comment Share on other sites More sharing options...
WIZZAH Posted January 31, 2013 Share Posted January 31, 2013 Would be nice to know how this problem resolved itself ... Im having a similar emergency. After adding a few stylesheet changes the whole pdf generation process returns a blank page in the admin section and no pdf is served. All pdf creation stopped dead. Removing changes has no effect. Link to comment Share on other sites More sharing options...
cammo Posted February 10, 2013 Share Posted February 10, 2013 (edited) I've just started having a similar problem. Placed a test order, cannot view the invoice. Click the 'View Invoice' button in the order summary (back office) and it takes me to a blank page where I get a http500 error. Same for delivery slips. Makes me think it's a PDF generation thing. Any got any ideas? I'm running Prestashop 1.5.2 Thanks Edited February 10, 2013 by cammo (see edit history) Link to comment Share on other sites More sharing options...
WIZZAH Posted February 11, 2013 Share Posted February 11, 2013 Hey Cammo. It was a while ago, and I did manage to get the thing to work again. I think I replaced the adapted files by the originals from the prestashop.zip. Then after a few refreshes all was working again. I gave up on redesigning the PDF's for this project for now. Not sure what a real solution should be. Hope this works Link to comment Share on other sites More sharing options...
cammo Posted February 12, 2013 Share Posted February 12, 2013 Thanks Wizzah, When you say you replaced the adapted files which files exactly did you replace? Which ones are associated with the PDF generation? (If you can remember!) Thanks Link to comment Share on other sites More sharing options...
WIZZAH Posted February 12, 2013 Share Posted February 12, 2013 (edited) I only changed the templates that are responsible for the PDF generation. Never touched any PHP files. In this case, within the folder /pdf in the root I made a copy of invoice.tpl, renamed it and changed the css inside it slightly to balance out the design. Within the back-end under Orders/Invoice at "Invoice options" I now had the choice to select a different Invoice model and I chose the template I created. The first few changes worked out fine, but at some point all hell broke loose. I also tried changing the standard invoice.tpl and selected that as the model, but that did not solve anything. In the end I just deleted all files in de /pdf folder and uploaded freshly unzipped ones from the standard install. A few refreshes later all was fine again. I guess this was not the right way to go about the task of customising invoices at all. After this emergency (the site was already live) I gave up on the idea of making custom invoices for now, although it would be very cool if I got it to work. I'd be very interested to hear if anyone finds the right way to go about this. Cheers! [Edit: Excuse me if I get the button/label names wrong. My interface is in Dutch] Edited February 12, 2013 by WIZZAH (see edit history) Link to comment Share on other sites More sharing options...
amraohs Posted February 13, 2013 Share Posted February 13, 2013 I have the same problem, it gives me a 500 error when its not in debug mode ('_PS_MODE_DEV_', true). When it's in debug mode it just gives me a blank page. It used to work like a charm, I just added some products and changed the e-mail translations, then it stopped working. I tried to replace the PDF folder with the original files as mentioned above, but it still gives me a blank page. I haven't changed anything by hand on files, i just made changes within the administration panel. It seems that the creation of the PDF's is not working, i'm having the same problem on the credit or delivery slips. Link to comment Share on other sites More sharing options...
cammo Posted February 21, 2013 Share Posted February 21, 2013 Same issue here. Hoping for some insight soon.. I have an open bug on the issue tracker, just awaiting some further advice from Prestashop. Link to comment Share on other sites More sharing options...
cammo Posted February 26, 2013 Share Posted February 26, 2013 Well here was my solution to the problem.. It seems you can not have a PNG file selected for the invoice logo in the Prestashop settings. I had to change the invoice logo to a JPG file and it now works. Found the solution here: http://www.prestashop.com/forums/topic/176064-tcpdf-error-help-plz/ Link to comment Share on other sites More sharing options...
rhemaxos Posted November 15, 2013 Share Posted November 15, 2013 Hi there, I had the same problem, in more detail:Was trying to customize the invoice and at a point (at which I don't know what exactly was modified) after an invoice was generated when I clicked "See Invoice" in the Admin -> Orders -> Order Details, a new page would open without the "Save file" dialog, completely blank with no source code in it. What I did:Step 1: Go to root/config/defines.inc.php and change this line: define('_PS_MODE_DEV_', false); to this define('_PS_MODE_DEV_', true); This is in order to see what exactly is going wrong. For me it was a line in the pdf/header.tpl that seemingly had a syntax error, which really didn't make too much sense. Step 2: I just took the original files from the Prestashop archive and replaced all of root/pdf. I hope this helps because I see that this forum isn't helping too many people, they say the PrestaShop community is great, but I just don't see it. Link to comment Share on other sites More sharing options...
laurapessoa Posted November 26, 2013 Share Posted November 26, 2013 I have the same problem with PS 1.5.6, the solution of rhemaxos doesn't work for me... :-( Link to comment Share on other sites More sharing options...
chianto79 Posted November 28, 2013 Share Posted November 28, 2013 (edited) Hi, i just start using prestashop 1.5.6 and i have same problem... when i click the button to see invoice, i just get the white blank page... can some body help us? hi @rhemaxos i just do what you said.. After that i see this : Warning: gzuncompress() has been disabled for security reasons in /home/xxxxxx/public_html/xxxxxxxxxxxx.com/online/tools/tcpdf/tcpdf.php on line 11656 So wha should i do? thank you Edited November 28, 2013 by chianto79 (see edit history) Link to comment Share on other sites More sharing options...
ilovekutchi.com Posted April 2, 2014 Share Posted April 2, 2014 same problem here... This makes me think that is something related to 1.5.6... Link to comment Share on other sites More sharing options...
Newlifebeat1 Posted March 17, 2015 Share Posted March 17, 2015 Anyone found the best way to fix this , because i see no reason why Admin should mark this thread as RESOLVED when we all still bleeding ........ Thanks @ all the Admins we Love you all :) Link to comment Share on other sites More sharing options...
sumit mohanty Posted April 2, 2016 Share Posted April 2, 2016 Anyone found the best way to fix this , because i see no reason why Admin should mark this thread as RESOLVED when we all still bleeding ........ Thanks @ all the Admins we Love you all you are right. PDF icon is not showing in the invoice order in PDF section. Please help. Thanks in advance. Link to comment Share on other sites More sharing options...
Recommended Posts