You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an order is made then the email that is sent to the customer has a pdf attached. When the order is first made, this pdf only displays "An error occurred while generating this PDF."
If the email is then subsequently sent again through the CP then the pdf is generated correctly.
The pdf is also generated correctly if the "Download PDF" button is clicked in the order backend CP.
The problem only manifests in the automated email sent out when an order is newly created.
I am using Oliver Stark's AsyncQueue plugin (v3.1.0) but I have also tested without (same result).
Craft CMS version
4.5.11
Craft Commerce version
4.3.2
PHP version
8.2.12
Operating system and version
Linux 4.15.0-192-generic
Database type and version
MySQL 5.7.42
Image driver and version
GD 8.2.12
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
@tigerchick Did you set runQueueAutomatically to false? Seems to work for us.
Hi @stefanfriedrich , thanks for the suggestion - I have tried that just now but it doesn't seem to have made a difference.
Also I think that setting is overridden by the plugin anyway (to be false): ostark/craft-async-queue#43 (comment)
Incidentally, I should have mentioned that this was working correctly before I updated to commerce 4x (previously on 3x)
I finally tracked down the issue to a template problem. If it's useful to anyone, the template was using an include that made use of craft.app.request.segments|last.
That's all very well on the frontend but clearly was throwing an error when the pdf was generated in the backend upon order status change. Tracked it down using the logs eventually. This "issue" can be closed and apologies for bringing it up.
What happened?
Description
If an order is made then the email that is sent to the customer has a pdf attached. When the order is first made, this pdf only displays "An error occurred while generating this PDF."
If the email is then subsequently sent again through the CP then the pdf is generated correctly.
The pdf is also generated correctly if the "Download PDF" button is clicked in the order backend CP.
The problem only manifests in the automated email sent out when an order is newly created.
I am using Oliver Stark's AsyncQueue plugin (v3.1.0) but I have also tested without (same result).
Craft CMS version
4.5.11
Craft Commerce version
4.3.2
PHP version
8.2.12
Operating system and version
Linux 4.15.0-192-generic
Database type and version
MySQL 5.7.42
Image driver and version
GD 8.2.12
Installed plugins and versions
The text was updated successfully, but these errors were encountered: