cammo Posted February 11, 2013 Share Posted February 11, 2013 (edited) Just in the final stages of testing a new store running on 1.5.2 and noticed when doing some test orders that the PDF invoices/delivery slips do not generate. When you go into view Orders in the back office, and click on the 'View Invoice' button, it opens a blank window, trying to generate the PDF, but eventually gives me a HTTP500 error. Same deal with the Delivery slips. This makes me think it's a PDF generating issue. What could be causing this? I wouldn't know where to start. I haven't made any core mods, just theme modifications, CSS etc. Although I have tweaked some modules. I checked and replaced the AdminPdfController.php thinking maybe that has something to do with it, but there was nothing wrong with the content of the file. Same as in PS1.5.3. Anyone have any ideas or know of this happening to anyone? My next step will be to disable modules one by one, to see if one of them may be causing it somehow? Edited March 1, 2013 by cammo (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, have you found a solution yet? Link to comment Share on other sites More sharing options...
cammo Posted February 21, 2013 Author Share Posted February 21, 2013 No, not yet. Will be sue to post if/when I do though! Link to comment Share on other sites More sharing options...
cammo Posted February 26, 2013 Author Share Posted February 26, 2013 (edited) 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.prestasho...error-help-plz/ Edited February 26, 2013 by cammo (see edit history) 1 Link to comment Share on other sites More sharing options...
amraohs 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.prestasho...error-help-plz/ THANK YOU!! This is the solution, they should really add this to their documentation or beter it should not be possible to upload an PNG here. Link to comment Share on other sites More sharing options...
shopimport.nl Posted June 1, 2016 Share Posted June 1, 2016 I did experience slow PDF (invoice) generation with my prestashop upgrade to 1.6.5 and found the fix. Maybe worth to try for your image PNG logo issue. Upgrade the 3rd party software tcpdf which is located in tools/tcpdf First make a backup of tools/tcpdf Download the zip from https://sourceforge.net/projects/tcpdf/files/ unpack it and copy it OVER the original one If you replace the whole folder then prestashop still cannot generate invoices. Maybe there is a file in tools/tcpdf which is prestashop specific. I didn't look into this as it's working now. My tcpdf upgraded from 5.9.179 to 6.2.11. The version is listed at the top of the tcpdf.php file Link to comment Share on other sites More sharing options...
José M. Posted July 26, 2023 Share Posted July 26, 2023 (edited) On 6/1/2016 at 2:47 PM, shopimport.nl said: I did experience slow PDF (invoice) generation with my prestashop upgrade to 1.6.5 and found the fix. Maybe worth to try for your image PNG logo issue. Upgrade the 3rd party software tcpdf which is located in tools/tcpdf First make a backup of tools/tcpdf Download the zip from https://sourceforge.net/projects/tcpdf/files/ unpack it and copy it OVER the original one If you replace the whole folder then prestashop still cannot generate invoices. Maybe there is a file in tools/tcpdf which is prestashop specific. I didn't look into this as it's working now. My tcpdf upgraded from 5.9.179 to 6.2.11. The version is listed at the top of the tcpdf.php file Hi, I'm experiencing slow PDF generation too. I've tried updating tcpdf, and also I've make sure the logos are in JPG. Still generates them too slow. I also have a test prestashop different store as a test environment, and with same configuration (also PHP configuration), it works great. Does anybody have any clue about this problem? Much thanks. Edited July 26, 2023 by José M. (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now