Support

Home Forums Event Espresso Premium Error when trying to resend emails

Error when trying to resend emails

Posted: May 15, 2015 at 3:08 pm

Viewing 22 reply threads


Vince

May 15, 2015 at 3:08 pm

Hej again,

When I try to resend any kind of confirmation email, I get the following error:

The following errors have occurred:
Something went wrong and the message for this registration was NOT resent
EED_Messages – process_resend – 570
Something went wrong and the message for this registration was NOT resent
EED_Messages – process_resend – 570
Something went wrong and the message for this registration was NOT resent
EED_Messages – process_resend – 570

Any idea how I can fix this?


Lorenzo Orlando Caum

  • Support Staff

May 16, 2015 at 9:56 am

Hi Vince, is your registration approved message type enabled?

Here is a screenshot:

http://cl.ly/image/383C381j0T42

Also, are you experiencing any issues with any other message types in Event Espresso?


Lorenzo


Vince

May 16, 2015 at 10:02 am

Hej Lorenzo,

It is enabled, same as what you show. And it seems to be all messages. I’m no longer receiving admin related registration emails either.

It’s odd, as earlier yesterday I was receiving admin emails. I’m sure it was working earlier in the week though when I was testing – it seems to be since I upgraded Event Espresso on Wednesday that it has been occurring.


Seth Shoultes

  • Support Staff

May 18, 2015 at 12:33 pm

Hello Vince,

We have a few versions of EE4 floating around. Can you please tell me what version of Event Espresso is currently installed on your site?


Vince

May 18, 2015 at 12:44 pm

Hi again,

I have Version 4.6.27.p installed currently.


Tony

  • Support Staff

May 18, 2015 at 1:06 pm

Hi Vince,

Are you using Mandrill for your emails, using wpMandril?


Vince

May 21, 2015 at 1:40 pm

No I’m not. Should I? If so, how does one install that? Apologies for my slow reply – I’ve been busy with my day job…


Vince

May 21, 2015 at 1:53 pm

I’ve actually just installed it – and it looks like it’ll work…but I’m getting a weird message now:

redacted – Event Espresso support team – LOC


Lorenzo Orlando Caum

  • Support Staff

May 21, 2015 at 1:55 pm

Hi Vince, could you take a look at this article here?

https://eventespresso.com/wiki/postmark-app-mandrill-transactional-email-handling-services/

If anything is confusing, do let us know so we can clarify.


Lorenzo


Vince

May 21, 2015 at 1:59 pm

Hi Lorenzo,

Nothing confusing – but I still get that error I noted above. Any idea? Or should I try Postmark instead?


Lorenzo Orlando Caum

  • Support Staff

May 21, 2015 at 2:15 pm

Alright, who are you using for your hosting provider?

I read back to an earlier post and you mentioned that it was working a few days ago but has since stopped. Were there any new plugin installs during this time or were any message types disabled through the settings page for the messages system in your WP dashboard?


Lorenzo


Vince

May 21, 2015 at 2:22 pm

Only installs or updates done have been the upgrades for event espresso. My host is one.com here in Denmark.

I strongly suspect it was manually registering 60+ attendees that caused the problem. I like how mandrill is working, I just would like to solve that problem instead now than the original if we can.


Lorenzo Orlando Caum

  • Support Staff

May 21, 2015 at 2:38 pm

Hi Vince,

Are you still seeing the same error if you try to resend an email now that Mandrill is setup?

Mandrill and Postmark app can handle sending out a large number of emails each day.


Lorenzo


Vince

May 21, 2015 at 2:46 pm

Hi

No I’m getting a different error. But it looks like the support team redacted it from an earlier post. Something about a time out error.


Lorenzo Orlando Caum

  • Support Staff

May 21, 2015 at 3:57 pm

Hi, I removed it since our support forums are partially public. We can still see it and here is what I found on that:

http://stackoverflow.com/a/21108885

It may be a restriction via your web host. Could you deactivate the Mandrill plugin and try Postmark app instead?


Lorenzo


Vince

May 22, 2015 at 5:14 am

Hej

I’ve tried to use Postmark, and get the following error instead:

Warning: strpos() expects parameter 1 to be string, array given in /wp-content/plugins/postmark-approved-wordpress-plugin/postmark.php on line 219 Warning: strpos() expects parameter 1 to be string, array given in /wp-content/plugins/postmark-approved-wordpress-plugin/postmark.php on line 239 Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/postmark-approved-wordpress-plugin/postmark.php:219) in /wp-includes/pluggable.php on line 1196

This is beginning to get a little tiresome. All I need is the ability to send emails. WP isn’t working, Mandrill isn’t working, Postmark isn’t working. For what is supposed to be a ‘simple’ proposition, this is becoming increasingly frustrating.

  • This reply was modified 9 years, 5 months ago by Tony.


Tony

  • Support Staff

May 22, 2015 at 5:59 am

As much as emails should be simple, they rarely are ๐Ÿ™‚

The error thrown by wpMandrill was this:

Warning: set_time_limit(): Cannot set max execution time limit due to system policy in /wp-content/plugins/wpmandrill/lib/mandrill.class.php on line 432

I’ve remove any details specific to your server so the error can remain visible.

Whats happening here is wpMandrill is attempting to extend the php_execustion_time value on your server. This value defaults to 30 seconds, Mandrill is trying to do this:

if( !ini_get('safe_mode') ){
    set_time_limit(2 * 60);
}

If PHP is not in safe mode, extend the execution time to 120 seconds…

Normally this works fine, but your host has a policy in place to prevent such changes and so throws a warning. This isn’t a problem if you are not experiencing timeout issues with wpMandrill although I would recommend contacting your host and see what they recommend.

The fact that the emails just stopped working leads me to believe this is a server config issue. Can WordPress send standard emails?

Remove the PostMark plugin and is wpMandrill is active, temporarily disable it.

Install a plugin such as Check Email and use it to send a test email from your install. Do you receive that email?

If not then WordPress can’t send emails, if WordPress can not send emails neither can Event Espresso. This would be a server config issue.

This is where wpMandrill comes in, it removes your hosts mailserver from the equation as your are using Mandrills servers for your emails. So re-activate and use wpMandril and your emails should work as expected.

As explained above the ‘warning’ thrown by wpMandrill is due to a restriction in place by your host and because you have error reporting enabled on your site.

Is WP_DEBUG enabled? If so disable it to remove the warnings.

(This doesn’t actually fix the problem, just stops the warning from being displayed, so I would still recommend contacting your host for further info)


Vince

May 22, 2015 at 6:14 am

Cheers Tony!

I got in touch with my host earlier, and they do have a 50s timer thing policy in place. So I went in, edited the php code, and I still get the error. Along with a new ‘1109’ header type email warning.

Postmark isn’t throwing the time error, but instead the error I noted above. It seems to send the emails fine (and I receive the test ones), but it still ‘crashes’ the site. I’ve no idea if WP_Debug is enabled or not, or even where to disable it….

Thanks again for the patience!


Tony

  • Support Staff

May 22, 2015 at 6:45 am

Sorry I seem to missing something, how is the site ‘crashing’?

So I went in, edited the php code, and I still get the error. Along with a new โ€˜1109โ€™ header type email warning.

What exactly did you change?

WP_DEBUG is enabled using a constant within the wp-config.php file on your server.

Currently are you using PostMark or Mandrill? Which service would you prefer to use?

I think its best if we stick with one and get that working, personally I recommend Mandrill as its what I use although PostMark is very similar.


Vince

May 22, 2015 at 11:02 am

Hej Tony,

Thanks for the continued patience.

What exactly did you change?

I entered the Mandrill.class.php file, and changed line 432. Instead of the 2 * 60 that was in the set time function, I changed it to 50, which was the limit that my host has.

Each time an email is sent from the site, the site changes to a blank white screen, with the block of error messages described earlier. And the emails that are sent are garbled HTML. This might have something to do I think with the final error in the listing:

Warning: Cannot modify header information – headers already sent by (output started at /customers/a/b/8/dktge.com/httpd.www/events/wp-content/plugins/wpmandrill/lib/mandrill.class.php:432) in /customers/a/b/8/dktge.com/httpd.www/events/wp-includes/pluggable.php on line 1196

I’m fine with using either system, and just want to get one working. I think Mandrill is the better option overall.


Tony

  • Support Staff

May 22, 2015 at 11:13 am

I entered the Mandrill.class.php file, and changed line 432. Instead of the 2 * 60 that was in the set time function, I changed it to 50, which was the limit that my host has.

The issue isn’t the value that is being set, its that your host doesn’t allow the script to change the value at all, which is what it is trying to do.

That’s a warning, notice it starts with ‘Warning: ‘, warnings basically mean ‘something is wrong but I’m letting you know about it and will try to continue with what I’m doing’.

There should be one with ‘Fatal Error:’ is you getting a whitescreen, can you paste that here please?

  • This reply was modified 9 years, 5 months ago by Tony.


Vince

May 22, 2015 at 11:17 am

Hmm – there’s no ‘Fatal Error’ flag when the screen goes white. Just this:

Warning: set_time_limit(): Cannot set max execution time limit due to system policy in /customers/a/b/8/dktge.com/httpd.www/events/wp-content/plugins/wpmandrill/lib/mandrill.class.php on line 432 Warning: set_time_limit(): Cannot set max execution time limit due to system policy in /customers/a/b/8/dktge.com/httpd.www/events/wp-content/plugins/wpmandrill/lib/mandrill.class.php on line 432 Warning: Cannot modify header information - headers already sent by (output started at /customers/a/b/8/dktge.com/httpd.www/events/wp-content/plugins/wpmandrill/lib/mandrill.class.php:432) in /customers/a/b/8/dktge.com/httpd.www/events/wp-includes/pluggable.php on line 1196


Tony

  • Support Staff

May 22, 2015 at 12:36 pm

There’s something strange here.

Could I take a look over the admin and see if I can see any reason for this?

You may need to issue a ticket with your hosting company for them to investigate this but I’ll check over Event Espresso.

If so please send temporary log in details using this form:

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

Viewing 22 reply threads

The support post ‘Error when trying to resend emails’ 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.

Event Espresso