Nothingbuttea Posted May 15, 2015 Share Posted May 15, 2015 Everyday this week i have had one order where there is an error with the PDF invoice. The totals show correctly but it misses out some of the items. Any suggestions on how to get this fixed? Prestashop 1.6.0.6 Link to comment Share on other sites More sharing options...
prestatent Posted May 15, 2015 Share Posted May 15, 2015 Hi I've a few questions: 1. Have you had orders this week where there were no errors? 2. Have you installed any modules or changed any of the software recently? 3. When the error occurs, is it always the same product(s) ordered? Link to comment Share on other sites More sharing options...
Nothingbuttea Posted May 19, 2015 Author Share Posted May 19, 2015 I have not changed anything on the store recently. I stopped upgrading modules when every upgrade caused major problems. It is not every order, just one which the pdf invoice wont correctly generate. There is no problem with the order itself and the delivery note generates just fine. It only seems to be affecting orders where the invoice is more than one page long. The error message is as follows. An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the pdf document to correct the problem. Link to comment Share on other sites More sharing options...
prestatent Posted May 19, 2015 Share Posted May 19, 2015 Hi Is the invoice not generated automatically when the order goes through? Have you previously had invoices generating correctly where they are more than one page long? Link to comment Share on other sites More sharing options...
prestatent Posted May 19, 2015 Share Posted May 19, 2015 A further note. I've just tried this and get the same error with the payment status not updating correctly and the invoice not being generated. Looks like there may be a bug within the order controller or invoice template. Has anyone else noticed this issue? I'm using PS 1.6.0.8. Link to comment Share on other sites More sharing options...
tuk66 Posted May 19, 2015 Share Posted May 19, 2015 I think the TCPDF library creates wrong invoices in some cases. I suggest to upgrade just this library from tcpdf.org. Link to comment Share on other sites More sharing options...
prestatent Posted May 19, 2015 Share Posted May 19, 2015 Hi Tuk I've just downloaded the latest tcpdf libary zip. The only 2 files I've replaced were tcpdf.php and tcpdf_parser.php. Unfortunately this does not resolve the issue. I've also looked at various other threads on this issue. I think the PS team are trying to fix, although I would have expected this issue to be fixed by now judging by how old some of the threads are. Link to comment Share on other sites More sharing options...
tuk66 Posted May 20, 2015 Share Posted May 20, 2015 Basically, there are four ways how to fix it: - upgrade TCPDF library - upgrade PrestaShop PDF files (GitHub, patches on the forum) - fix it yourself - use 3rd party module for invoices Link to comment Share on other sites More sharing options...
las3r Posted May 20, 2015 Share Posted May 20, 2015 In case you are not a developer you could find someone to help you in this forums - it should be a quick fix for someone who knows what their doing. I would guestimate an hour of work, max. Link to comment Share on other sites More sharing options...
mister_j Posted April 18, 2018 Share Posted April 18, 2018 Yes you need to update tcpdf library to new version and that error is gone 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