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
    Commented Oct 11, 2018 at 9:06
  • To further clarify, I am able to output a PDF but it only contains the error message.
    – Ian Ebden
    Commented Oct 11, 2018 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
    Commented Oct 11, 2018 at 18:25

1 Answer 1


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? Commented Oct 19, 2018 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
    Commented Oct 20, 2018 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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