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?

  • 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 9 hours ago

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.