Attach PDF results in Errors


If you go to Email Settings > Attach PDF and set it to OFF, you will have problems sending the invoice. You won’t be able to see the invoice PDF on the invoice panel and when the customer gets the email and click on the link to pay, they are directed to a “500 — Server Error” page.


Are there any details about the 500 in storage/logs?

@david any thoughts?

We’ll need to see what the error logs say.

500: There was an error generating the PDF with Phantom JS

It did it again. It was fine and when I switch it to not include the pdf it started again. I have turned it off on env but it continues giving issues. I’m including also what it says on the bottom of the invoice while creating the invoice. As you can see there’s no pdf generated and the error that it shows.

Do you want the whole screen that comes up while creating the invoice?


In storage/logs/laravel.log

there will be a full excerpt of the error. It sounds like your PDF generation is failing.

Yes, I solved it. I turned PHANTOMJS_PDF_GENERATION off on env.