Posted: September 5, 2018 at 4:09 pm
|
Hi – I’m having an issue where the emails that should be sent to admins and my customers are not being sent after customers purchase tickets for their event. I’ve logged into WP and have tried to manually generate and send again and I receive the below error. Can you please let me know what’s going on here? An error has occurred: |
Hi, and welcome to the Community forum! If you go to test an email from one of the email Message template editors, do you receive the test? If so, it may help to go to Event Espresso > Messages > Message Settings and set the the option for emails to be sent on the same request. If not, can you verify whether *other* emails (like a WordPress password reset email) get sent from your site? You can install this plugin to verify whether the mail actually gets sent or not: It’s important to discern whether the emails are actually not getting sent, or if they’re actually getting sent, but not received. If you find that they’re getting sent, can you check to see whether the emails are getting trapped in the spam folder? In most cases, setting up a third party service to deliver email will resolve email delivery issues. The built-in mail servers (especially those that are used for shared hosting accounts) can be unreliable. We recommend using a service like Mandrill, Postmark, or any of the other services listed in our documentation for sending transactional email. More info here: https://eventespresso.com/wiki/postmark-app-mandrill-transactional-email-handling-services/ Alternatively, you could also use a gmail account and configure a plugin like the WP Mail SMTP plugin to send the emails. |
|
|
Hi Josh, Thanks for the follow up, I really appreciate it. To answer your questions:
|
Is the site with the 500 error using the current supported version of Event Espresso 4? |
|
|
We are currently on Version 4.9.62.p While I’m looking at it, it appears that we do not have an active Support License Key. Will these emails not work at all if we’re not on the latest version / have an active support license? |
Emails are in no way connected to the support license key. The one thing on the site that changes when a support license expires is the site no longer has access to software updates. |
|
|
That was my understanding as well. What else can I do to fix these emails? |
You can troubleshoot the 500 error by following this guide: |
|
|
The issue isn’t with a theme or plugin conflict, just tested both of those. I enabled debug mode on dev and got slightly more information: An error has occurred: Overall though, everything is still performing the same (that is to say not sending emails). All of the items in the Messages section of EE just have a status of ‘ Messenger Is Executing’ and I get the above error when I try to manually ‘Generate and Send Now’. When I try to send a test email, I still get a 500 error. What else can I do here? |
|
Screenshot of the list of messages: https://www.evernote.com/l/Am5bqEzh_gtA97u3mwVs88veneTaKpCB8x4 Also, I went ahead and created an admin user for you so you can login and take a look at things on dev: This is a dev environment so don’t worry about breaking anything. Let me know if I can provide any additional information
|
You’ll need to activate WP_DEBUG mode (see above link for instructions) to capture the 500 error. I’m going to remove the site information you posted because this is a public forum. |
|
|
This reply has been marked as private. |
|
This reply has been marked as private. |
|
Just posted the contents of the debug file, let me know what else I can do! |
So if you read through the errors, you’ll note the error where it says “PHP Fatal error: require_once(): Failed opening required” followed by the path to plugins/event-espresso-core-reg/core/third_party_libs/cssinliner/vendor/autoload.php. The first thing to check then is if the above file is missing. When you download Event Espresso, it comes with that file. If that file has been removed, you need to add it back. If that file is there, then there’s likely a file permissions issue on your server that needs to be fixed to allow loading that file again. |
|
|
Thank you! The /cssinliner/ directory flat out doesn’t exist. Where should I get that file from? |
You could get that from a backup, or normally you would download a fresh copy of Event Espresso from your account page, but since you do not have an active support license those download links are not available. So you could renew your support license and then simply update to the current version, and that will restore the missing files. The decaf version available from wordpress.org uses the same library and can be downloaded without a support license. |
|
|
This reply has been marked as private. |
That’s a different error logged, and an indication you need to update to the current version of EE4. |
|
|
Thank you Josh! Pushing my client to upgrade now then, will hopefully be able to do as much and take care of this over the weekend. |
In addition to updating to the current version, a few other things you’ll also do well to check: 1) Make sure the pages that handle the event registration checkout are not being cached |
|
|
Thanks – I’ll verify item 1, I already have messages sending on the same request so covered on 2. Appreciate it! |
The support post ‘Emails are not sending’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.