Support

Home Forums Event Espresso Premium Emails are failing to send

Emails are failing to send

Posted: July 20, 2018 at 8:04 am


paintforfun

July 20, 2018 at 8:04 am

I am pretty sure my emails are failing due to changing to HTTPS. Before the change everything was working fine. Other emails are being sent from the website its just wont send when it is related to Event espresso. it shows in the table as failed. This is a message I get when clicking the i:

“Message was not executed successfully.
Messenger and Message Type were valid and active, but the messenger send method failed.”

email i use : WP mail smpt google.
when I try to send a test email I am being redirected to a page with this message:

http://www.paintforfun.com.au is currently unable to handle this request.
HTTP ERROR 500

Any thoughts? Thanks!


paintforfun

July 20, 2018 at 8:14 am

more info: i checked the wp-mail-log and I see the emails as sent it does not show any error.


Tony

  • Support Staff

July 20, 2018 at 9:41 am

Hi there,

http://www.paintforfun.com.au is currently unable to handle this request.
HTTP ERROR 500

Looks like the site is still loading over HTTP.

How did you enable HTTPS on the site? Are you still loading the site of HTTP and just redirecting everything over to HTTPS?

If you go to Dashboard -> Settings -> General

Do the ‘WordPress Address’ and ‘Site Address’ fields show as HTTP?


paintforfun

July 21, 2018 at 7:32 am

Hi its shows as HTTPS. I used the simple SSL plugin to go from HTTP to HTTPS


paintforfun

July 22, 2018 at 5:06 am

Hi I opened the error log and found this error:

[22-Jul-2018 11:03:00 UTC] —————————————————————————————-
[2018-07-22 11:03:00] Exception Details
Message: Incoming data for the Gateways data handler must have an EE_Transaction object as the value for the first array index.
Code: EE_Messages_Gateways_incoming_data – __construct – 36
File: /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/data_class/EE_Messages_Gateways_incoming_data.class.php
Line No: 36
Stack trace:
#0 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(918): EE_Messages_Gateways_incoming_data->__construct(Array)
#1 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(888): EE_Messages_Generator->_set_data_handler(Array, ‘EE_Messages_Gat…’)
#2 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(759): EE_Messages_Generator->_validate_and_setup_data()
#3 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(152): EE_Messages_Generator->_verify()
#4 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Processor.lib.php(129): EE_Messages_Generator->generate()
#5 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/modules/messages/EED_Messages.module.php(337): EE_Messages_Processor->batch_generate_from_queue()
#6 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Scheduler.lib.php(149): EED_Messages->run_cron()
#7 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Scheduler.lib.php(164): EE_Messages_Scheduler::initiate_immediate_request_on_cron(‘generate’)
#8 /home/paintfor/public_html/wp-includes/class-wp-hook.php(286): EE_Messages_Scheduler::batch_generation()
#9 /home/paintfor/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#10 /home/paintfor/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#11 /home/paintfor/public_html/wp-cron.php(126): do_action_ref_array(‘AHEE__EE_Messag…’, Array)
#12 {main}


paintforfun

July 23, 2018 at 4:24 am

Hi ,
I am getting this error.
Any thoughts on how to solve this? It is pretty urgent the emails are not being sent from the system they appear as failed and needs to be done manually.

[23-Jul-2018 10:13:05 UTC] —————————————————————————————-
[2018-07-23 10:13:05] Exception Details
Message: Incoming data for the Gateways data handler must have an EE_Transaction object as the value for the first array index.
Code: EE_Messages_Gateways_incoming_data – __construct – 36
File: /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/data_class/EE_Messages_Gateways_incoming_data.class.php
Line No: 36
Stack trace:
#0 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(918): EE_Messages_Gateways_incoming_data->__construct(Array)
#1 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(888): EE_Messages_Generator->_set_data_handler(Array, ‘EE_Messages_Gat…’)
#2 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(759): EE_Messages_Generator->_validate_and_setup_data()
#3 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(152): EE_Messages_Generator->_verify()
#4 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Processor.lib.php(129): EE_Messages_Generator->generate()
#5 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/modules/messages/EED_Messages.module.php(337): EE_Messages_Processor->batch_generate_from_queue()
#6 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Scheduler.lib.php(149): EED_Messages->run_cron()
#7 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Scheduler.lib.php(164): EE_Messages_Scheduler::initiate_immediate_request_on_cron(‘generate’)
#8 /home/paintfor/public_html/wp-includes/class-wp-hook.php(286): EE_Messages_Scheduler::batch_generation()
#9 /home/paintfor/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#10 /home/paintfor/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#11 /home/paintfor/public_html/wp-cron.php(126): do_action_ref_array(‘AHEE__EE_Messag…’, Array)
#12 {main}


paintforfun

July 23, 2018 at 4:31 am

Event espresso-> messages->settings -> it is already set to on the same request


Tony

  • Support Staff

July 23, 2018 at 7:49 am

Hi its shows as HTTPS. I used the simple SSL plugin to go from HTTP to HTTPS

Hmm, ok.

If you run a test email again so you get the error 500 again, then check the error log above, what error does it show?

How exactly are you sending a test email?

Message: Incoming data for the Gateways data handler must have an EE_Transaction object as the value for the first array index.

This may be another symptom of the problem.

If you go to Event Espresso -> Messages -> Message activity, do you have a lot of messages waiting to generate and waiting to send?


paintforfun

July 23, 2018 at 10:22 pm

do you have a lot of messages waiting to generate and waiting to send? yes. it shows as failed.

I no longer think it is due to transferring to https it is something else. I cant figure out what but this problem puts a massive pressure on the business as things are being done manually or transferred to Eventbrite for checkout and I have to solve it ASAP.

Any leads?


Tony

  • Support Staff

July 24, 2018 at 2:16 am

Any leads?

Can you answer this question, please?

If you run a test email again so you get the error 500 again, then check the error log above, what error does it show?

How exactly are you sending a test email?

If there is an error being thrown during the request it may well point to the cause.

do you have a lot of messages waiting to generate and waiting to send? yes. it shows as failed.

So you don’t have any messages ‘waiting to generate’ they are all just failed?

When you say the emails need to be done manually, in what way? You already mentioned above that the emails are set to send ‘on the same request’, so manually resending them shouldn’t make any difference as its almost exactly the same as what EE is doing.


paintforfun

July 24, 2018 at 4:24 am

If you run a test email again so you get the error 500 again, then check the error log above, what error does it show? scroll down to see

How exactly are you sending a test email? via Event Espresso->Messages->default messages template->test email on the right hand side of the screen.

When I click the button it redirects me to the message:

This page isn’t working
http://www.paintforfun.com.au is currently unable to handle this request.
HTTP ERROR 500.

Then I check the error log and find this error:

[24-Jul-2018 10:17:47 UTC] —————————————————————————————-
[2018-07-24 10:17:47] Exception Details
Message: Incoming data for the Gateways data handler must have an EE_Transaction object as the value for the first array index.
Code: EE_Messages_Gateways_incoming_data – __construct – 36
File: /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/data_class/EE_Messages_Gateways_incoming_data.class.php
Line No: 36
Stack trace:
#0 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(918): EE_Messages_Gateways_incoming_data->__construct(Array)
#1 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(888): EE_Messages_Generator->_set_data_handler(Array, ‘EE_Messages_Gat…’)
#2 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(759): EE_Messages_Generator->_validate_and_setup_data()
#3 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(152): EE_Messages_Generator->_verify()
#4 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Processor.lib.php(129): EE_Messages_Generator->generate()
#5 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/modules/messages/EED_Messages.module.php(337): EE_Messages_Processor->batch_generate_from_queue()
#6 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Scheduler.lib.php(149): EED_Messages->run_cron()
#7 /home/paintfor/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Scheduler.lib.php(164): EE_Messages_Scheduler::initiate_immediate_request_on_cron(‘generate’)
#8 /home/paintfor/public_html/wp-includes/class-wp-hook.php(286): EE_Messages_Scheduler::batch_generation()
#9 /home/paintfor/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#10 /home/paintfor/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#11 /home/paintfor/public_html/wp-cron.php(126): do_action_ref_array(‘AHEE__EE_Messag…’, Array)
#12 {main}

So you don’t have any messages ‘waiting to generate’ they are all just failed? No. They all show up as failed.
And I understand that EE should handle the messaging part – its exactly why I paid for it but it is not working.. Thats why the business manager needs to manually send the emails..

Hope my answers are clear and we will resolve this very soon.
Thanks!


Tony

  • Support Staff

July 24, 2018 at 4:45 am

And I understand that EE should handle the messaging part – its exactly why I paid for it but it is not working.. Thats why the business manager needs to manually send the emails..

No-one is saying EE is working as it should here (although the problem may not actually be with EE based on the above), nor that there isn’t a problem that needs to be fixed but what the problem is isn’t clear just yet.

EE is correctly triggering the functions to send the email, the above error indicates there’s an issue with the data used to build the email but theres multiple possible causes for that.

You mentioned the messages are sending manually, yet if you are using EE to manually resend the message there should be no difference between that manual resend and the request EE uses to generate and send the messages.

Hope my answers are clear and we will resolve this very soon.
Thanks!

You missed one:

When you say the emails need to be done manually, in what way? You already mentioned above that the emails are set to send ‘on the same request’, so manually resending them shouldn’t make any difference as its almost exactly the same as what EE is doing.

To rephrase, what exact steps are you taking to ‘do the emails manually’?


paintforfun

July 24, 2018 at 5:20 am

Manually->
created a template outside of WordPress and every time I have someone registered to an event I modify with details it and send it via gmail.(Not threw EE in any way)
-The most manual that you can get.


Tony

  • Support Staff

July 24, 2018 at 9:51 am

The error message above is showing there’s an issue with the data being pulled in to try and generate at least 1 message in the queue.

Can I take a quick look over the admin? If so you can sent temp login details using this form:

https://eventespresso.com/send-login-details/


Tony

  • Support Staff

July 25, 2018 at 10:28 am

Thank you, so the issue wasn’t with EE or even changing to HTTPS.

The problem was due to a conflict between Duplicator Pro and WP Mail SMTP, if you use oAuth in the WP Mail SMTP plugin Duplicator replaces the oAuth library with its own version which casues a fatal error each time WP Mail SMTP attempted to send an email.

I’ve de-activated Duplicator Pro on the site and now the emails send fine, you can’t use both those plugin at the same time.


Tony

  • Support Staff

July 25, 2018 at 10:31 am

This is the error that was being thrown:

Warning: json_decode() expects parameter 1 to be string, array given in /wp-content/plugins/duplicator-pro/lib/google/apiclient/Auth/OAuth2.php on line 184

Fatal error: Uncaught Google_Auth_Exception: Could not json decode the token 
in /wp-content/plugins/duplicator-pro/lib/google/apiclient/Auth/OAuth2.php:186 Stack trace: 
#0 /wp-content/plugins/duplicator-pro/lib/google/apiclient/Client.php(218): Google_Auth_OAuth2->setAccessToken(NULL) 
#1 /wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php(121): Google_Client->setAccessToken(Array) 
#2 /wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php(53): WPMailSMTP\Providers\Gmail\Auth->get_client() 
#3 /wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php(79): WPMailSMTP\Providers\Gmail\Auth->__construct() 
#4 /wp-content/plugins/wp-mail-smtp/src/MailCatcher.php(80): WPMailSMTP\Providers\Gmail\Mailer->send() 
#5 /wp-includes/pluggable.php(481): WPMailSMTP\MailCatcher->send() 
#6 /wp-content/plugins/wp-mail in /wp-content/plugins/duplicator-pro/lib/google/apiclient/Auth/OAuth2.php on line 186

The support post ‘Emails are failing to send’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 1 year, 3 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.