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

CC BY-SA 4.0
2018-10-19T18:08:50.673Z
I'm currently having the same issue.  Would you care to share how you fixed it?
Eric Chantigny
CC BY-SA 4.0
2018-10-20T12:31:08.077Z
Hi Eric. Decided not to use order PDFs for now, as they're not necessary for this first iteration of the store.
Ian Ebden
CC BY-SA 4.0
2018-10-12T06:23:14.760Z
2018-10-12T06:23:14.760Z
Ian Ebden
<p>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?</p>

CC BY-SA 4.0
2018-10-11T09:06:18.283Z
That goes for control panel and front end btw.
Ian Ebden
CC BY-SA 4.0
2018-10-11T09:42:30.337Z
To further clarify, I am able to output a PDF but it only contains the error message.
Ian Ebden
CC BY-SA 4.0
2018-10-11T18:25:06.320Z
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
<plugin-craftcommerce2>
"An error occurred while generating this PDF." in Commerce 2
# "An error occurred while generating this PDF." in Commerce 2

(Asked by: username_0 on 2018-10-11)

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?

**Tags:** plugin-craftcommerce2

> **Comments:**
> **username_0**: That goes for control panel and front end btw.  
> **username_0**: To further clarify, I am able to output a PDF but it only contains the error message.  
> **username_1**: 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?  

---

## 1 answers

### Answer by username_0 on 2018-10-12. Score: 1

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

> **Comments:**
> **username_2**: I'm currently having the same issue.  Would you care to share how you fixed it?  
> **username_0**: Hi Eric. Decided not to use order PDFs for now, as they're not necessary for this first iteration of the store.  

---

