Home › Forums › Ticket Products › Event Tickets Plus › PDF not attached to outgoing Completed Order email.
- This topic has 11 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
June 25, 2013 at 2:31 am #52140
jfulgham
ParticipantOrders seem to be taken just fine, billing works, and clients receive email with the subject: “Your Caustic Gear order from June 25, 2013 is complete/Ticket attached” but there is no file attachment.
Ticket link: https://www.causticgear.com/event/caustic-soda-space-disasters-in-3d/
Coupon for free ticket to test: NukeTheseTickets
Of course I’ll remove these orders once this has been solved.I’ve deactivated all plugins that I can that might conflict. My store is live so I’d rather not switch to TwentyEleven if I don’t have to. As noted, the email is being sent, it just doesn’t have a PDF ticket attached (though it says it should).
In the wp-admin back-end I can View Order and set the order to “Completed” and click “Apply” to get the Order Completed email sent out again, but still no PDF attached.
June 25, 2013 at 5:49 am #52148Barry
MemberHi! I just placed a test order (#395) – can you mark it complete and let me know at that point so I can look out for the next email? Thanks!
June 25, 2013 at 9:12 am #52171jfulgham
ParticipantDone, thanks!
June 25, 2013 at 11:47 am #52185Barry
MemberOK. I’m not sure what’s going on there – are you running any other plugins (such as WooCommerce “add ons”) or a theme that integrates with WooCommerce, that might possibly be conflicting somehow?
Failing that, are you able to check what your PHP memory_limit setting is?
June 25, 2013 at 12:27 pm #52202jfulgham
ParticipantThe theme does integrate with WooCommerce. It’s the “Cherry” theme available here: http://themeforest.net/item/cherry-responsive-ecommerce-theme-for-wp/2765359
I just upgraded it from 1.3.0 to 1.3.2 (after you tested) and a re-test of my own test-order still didn’t work.
The site is running on an AWS EC2 instance with nginx/php-fpm/FastCGI so it’s possible I haven’t properly configured the back-end.
Full PHP info: https://www.causticgear.com/phpinfo.php
Do I need some kind of PDF library installed with my PHP?
June 25, 2013 at 12:58 pm #52204Barry
MemberThe current version of WooTickets ships with a PDF library, so that shouldn’t be needed. The possibilities I’m thinking of are that:
A) There isn’t enough memory, though based on the phpinfo() dump and your hosting environment I would expect it to manage just fine.
B) Something else is stopping and/or short-circuiting WooTickets code for hooking into and adding attachments to WooCommerce emails.
I appreciate you may not wish to do this on a live site, but would it be possible for you to try this with a default theme such as Twenty Twelve? Even if you were to create a new installation of WP in a sub directory within the same hosting environment – so the live site remained unaffected – this could be a useful exercise.
June 25, 2013 at 1:23 pm #52210jfulgham
ParticipantMemory use is incredibly lean right now (nginx is incredible!) with over 80% of the 1.62G on this Small EC2 instance free (only 322M used, according to glances).
I did a temporary switch to TwentyEleven and deactivated all but the required plugins and tried re-completing my test order. Another email received, still no attachment. I quickly reactivated everything and set it back to typical settings for the store.
Since this is an EC2 instance I’m using Amazon’s SES service and the wp-ses plugin to send email. I can’t find any information on either thing stripping out attachments. I’ve posted a question on wp-ses’s FAQ here: http://wp-ses.com/faq.html#comment-5657 (awaiting moderation) and am scouring Amazon’s SES docs while I wait for a reply. All I can find so far is that two years ago they added attachment support.
June 25, 2013 at 1:38 pm #52212Barry
MemberI’m not familiar with wp-ses so it’s possible there is an issue there.
Ideally though it would be worth running through the order process with a completely new order – as if I recall correctly an update was made so that attachments would be dispatched once only (to avoid new ones being sent when the order was moved out of and back to complete – which was a complaint some other users had).
June 25, 2013 at 3:32 pm #52222jfulgham
ParticipantInstalled WP Maintenance Mode to hide the ugly from visitors. Removed all plugins but those absolutely required, switched to TwentyTwelve, restarted both the nginx and php-fpm services to ensure their caches are cleared, created a new order, used the coupon code, placed order, went into the back end and completed it, same result – email successfully sent, no sign of the attachment.
I’m going to experiment with different ways of sending email via SES and report back.
June 25, 2013 at 3:56 pm #52223jfulgham
ParticipantRESOLVED.
While looking around for other options I found the Amazon SES and DKIM Mailer and gave it a try. The SES functionality did the same as the WP-SES plugin (email yes, attachment no) but I noticed it also provided the option of sending via GMail, and my store’s domain uses Google Apps. After setting up the credentials to use my personal account on the store I went to the back-end and did another “Complete” action on a previous order. The email was sent instantly and this time successfully had the PDF ticket attached!This worked with all my plugins and my current Theme. SES seems to be the culprit.
I’m not sure why, but WordPress and SES don’t seem to like file attachments being sent. There may be a workaround or setting somewhere to get it to work, but for anyone else having this trouble and would rather just get things working, the GMail option works for me.
Thanks for the help, Barry!
June 26, 2013 at 6:12 am #52260Barry
MemberGlad you found a solution – and particular thanks for reporting back with the details as they will probably save other users from a great deal of frustration 🙂
July 7, 2015 at 6:26 am #979248Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘PDF not attached to outgoing Completed Order email.’ is closed to new replies.
