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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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