Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
So I've got it installed, all dependencies installed since I did it via composer. Symfony mailer has the email going via SMTP, and the PDF is blank and the QR code isn't generated in the PDF. When I run cron, the PDF also pops up before cron finishes (so I have to run cron again to get the email to send).
I'm thinking that this might be a permission issue? there's a "Commerce Ticket: Use all print engines" permission that needs to be enabled for the authenticated users to be able to use the entity print module.
I was playing around with this, and I'm not sure if it's a permission issue. To style the ticket, I used views to create a table and insert the QR code there and display it on the node via a viewfield. But the QR code doesn't seem to be able to be generated via views anymore.
I've tried with Symfony Mailer. It doesn't work since Symfony Mailer doesn't seem to be able to handle attachments at the moment. I've found that it works with the SMTP module.
I wish I could provide more details, but I'm not exactly sure what you're looking for.
Comments
Comment #3
pcambraComment #4
mattbloomfield commentedI'm afraid my PDF is still being emailed as blank. And the QR code isn't showing up in the PDF.
Comment #5
pcambraI'm afraid I will need more information about this
Comment #6
mattbloomfield commentedSo I've got it installed, all dependencies installed since I did it via composer. Symfony mailer has the email going via SMTP, and the PDF is blank and the QR code isn't generated in the PDF. When I run cron, the PDF also pops up before cron finishes (so I have to run cron again to get the email to send).
Comment #7
pcambraLet's tentatively reopen this one.
I've tested it again (and we have an automated test now), is this with logged in orders or anonymous?
Comment #8
mattbloomfield commentedIt's with both.
Comment #9
pcambraWe need to review/clarify permissions then?
We have a test that checks the "view own ticket" permission (please ensure you have that one)
This code is the one that ensures that the right user is used for sending the tickets:
https://git.drupalcode.org/project/commerce_ticketing/-/commit/ed8a0e8fb...
I definitely need to look at the mail tests and the qr code tests with permissions...
Any more info you can give me (permissions, etc), or if you find anything new, please let me know, I'll try to look at this tomorrow/Monday
Comment #10
pcambraCould it be related to #3294137: Tickets are not assigned on order assign?
Comment #11
pcambraComment #12
elbarcino commentedHas anybody found a solution to this problem. I'm running into the same issue...
Comment #13
pcambraI still need more information to debug / reproduce this problem
Comment #14
pcambraI'm thinking that this might be a permission issue? there's a "Commerce Ticket: Use all print engines" permission that needs to be enabled for the authenticated users to be able to use the entity print module.
Comment #15
mattbloomfield commentedI was playing around with this, and I'm not sure if it's a permission issue. To style the ticket, I used views to create a table and insert the QR code there and display it on the node via a viewfield. But the QR code doesn't seem to be able to be generated via views anymore.
Comment #16
pcambraFolks, I'm trying to help here, but I need more than vague info to give you an answer :)
Comment #17
imclean commentedOne thing stands out to me.
@mattbloomfield,
Symfony Mailer provides a completely different way of sending email. Has this been tested with Symfony Mailer?
@mattbloomfield, have you tried sending with any other mail modules?
Comment #18
mattbloomfield commentedI've tried with Symfony Mailer. It doesn't work since Symfony Mailer doesn't seem to be able to handle attachments at the moment. I've found that it works with the SMTP module.
I wish I could provide more details, but I'm not exactly sure what you're looking for.
Comment #19
imclean commentedMy suggestion would be to create a new issue for adding support for Symfony Mailer.
Comment #20
pcambraAh this is fantastic feedback, haven't checked with symfony mailer myself, will do that