Like the title says, I cannot output order PDFs in Commerce 2 and not sure how to debug this. Anyone else encountered the same issue?

bumped to the homepage by Community yesterday

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

  • That goes for control panel and front end btw. – Ian Ebden Oct 11 at 9:06
  • To further clarify, I am able to output a PDF but it only contains the error message. – Ian Ebden Oct 11 at 9:42
  • So you get an actual PDF file, but the contents of it say "An error occurred while generating this PDF"? Is that correct? Are you using the stock order template for PDFs? – Brad Bell Oct 11 at 18:25

Looks like there was a broken include in the order template. Sorted now though thanks.

  • I'm currently having the same issue. Would you care to share how you fixed it? – Eric Chantigny Oct 19 at 18:08
  • Hi Eric. Decided not to use order PDFs for now, as they're not necessary for this first iteration of the store. – Ian Ebden Oct 20 at 12:31

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.