Home Forums Event Espresso Premium Php upgrade issue?

Php upgrade issue?

Posted: April 5, 2019 at 11:19 am


April 5, 2019 at 11:19 am

Hi – our host has just updated to Php 7, and we find that the event registration tickets are generated as code gibberish. I have a text zip file I can share for analysis and trouble should, but basically, it’s a lot like this:

X-PHP-Originating-Script: 679:class-phpmailer.php
Date: Wed, 3 Apr 2019 17:38:31 +0000
From: Celtic Arts Foundation <>
Reply-To: Celtic Arts Foundation <>
Message-ID: <>
X-Mailer: PHPMailer 5.2.22 (
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

=0A<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://w=”>=0A<html xmlns=3D”http://w=” style=3D”margin: 0; padding: 0; font-family: ‘Helveti= ca Neue’, ‘Helvetica’, Helvetica, Arial, sans-serif;”>=0A <head style=3D”m=
argin: 0; padding: 0; font-family: ‘Helvetica Neue’, ‘Helvetica’, Helvetica= , Arial, sans-serif;”>=0A<!– If you delete this meta tag, Half Life 3 will=
never be released. –>=0A <meta name=3D”viewport” content=3D”width=3Dde=
vice-width” style=3D”margin: 0; padding: 0; font-family: ‘Helvetica Neue’, =
‘Helvetica’, Helvetica, Arial, sans-serif;” />=0A <meta http-equiv=3D”Co=
ntent-Type” content=3D”text/html; charset=3Dutf-8″ style=3D”margin: 0; padd=
ing: 0; font-family: ‘Helvetica Neue’, ‘Helvetica’, Helvetica, Arial, sans-=
serif;” />=0A<!– Facebook sharing information tags –>=0A <meta propert=
y=3D”og:title” content=3D”Event Registration Details” style=3D”margin: 0; p=
adding: 0; font-family: ‘Helvetica Neue’, ‘Helvetica’, Helvetica, Arial, sa=
ns-serif;” />=0A <title style=3D”margin: 0; padding: 0; font-family: ‘He=
lvetica Neue’, ‘Helvetica’, Helvetica, Arial, sans-serif;”>Event Registrati= on Details</title>=0A </head>=0A <body bgcolor=3D”#FFFFFF” topmargin=3D”0= ” leftmargin=3D”0″ marginheight=3D”0″ marginwidth=3D”0″ style=3D”margin: 0;=
padding: 0; font-family: ‘Helvetica Neue’, ‘Helvetica’, Helvetica, Arial, = sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: = none; height: 100%; width: 100%!important;”>=0A<table class=3D”head-wrap” b= gcolor=3D”#999999″ style=3D”margin: 0; padding: 0; font-family: ‘Helvetica = Neue’, ‘Helvetica’, Helvetica, Arial, sans-serif; width: 100%;”><tbody styl=
e=3D”margin: 0; padding: 0; font-family: ‘Helvetica Neue’, ‘Helvetica’, Hel= vetica, Arial, sans-serif;”><tr style=3D”margin: 0; padding: 0; font-family=
: ‘Helvetica Neue’, ‘Helvetica’, Helvetica, Arial, sans-serif;”><td style=
=3D”margin: 0; padding: 0; font-family: ‘Helvetica Neue’, ‘Helvetica’, Helv= etica, Arial, sans-serif;”></td>=0A<td class=3D”header container” style=3D”=
margin: 0 auto!important; padding: 0; font-family: ‘Helvetica Neue’, ‘Helve= tica’, Helvetica, Arial, sans-serif; clear: both!important; display: block!= important; max-width: 600px!important;”>=0A<div class=3D”content” style=3D”=

and so forth. We’ve downgraded back to Php 5.6 and the problem goes away…


  • Support Staff

April 5, 2019 at 11:29 am

When they update the server to newer PHP, maybe they can also update to a newer version of PHPmailer? PHPMailer 5.2.22 is an older version.

Otherwise, you could switch to use a transactional email service like one of the recommended providers listed here:


April 5, 2019 at 7:37 pm

Hello – we just finished a support chat with our host and they pointed out phpmailer is not part of the hosting package. I see there’s a phpmailer in wordpress – we have the most recent version of everything so I assume that should be working. I ran across something online – do we have to do some sort of reset on the EE templates after we upgrade to 7?


  • Support Staff

April 5, 2019 at 9:11 pm


No you do not need to do some sort of reset on the Event Espresso templates. PHPmailer is not in WordPress. Your web host should be able to update the server’s PHPmailer version. If they cannot, then your other option is bypass the web host provided mail server and use a transactional email service instead.


April 5, 2019 at 10:50 pm

The host tech support said whatever they have wrapped up in php7 should work, and the problem is in files of our website somewhere. Has this problem been coming up regularly now that everyone is upgrading php to 7? We’re using Bluehost fyi.


April 5, 2019 at 11:06 pm

After the host told me that I did a bunch of research trying to figure out where the script is to try and fix, and kept running into this type of statement:

PHPMailer is used by WordPress core to send email. You can find the code in the wp-includes/class-phpmailer.php core file.

And when I check that file I see some code that looks very much like the top of the broken email. So I figured the host was telling me correctly. But I have no clue.


  • Support Staff

April 8, 2019 at 6:46 am

Usually this happens when the emails are being marked as spam by one of the mailservers or it can also be to a poorly configured mailserver.

It is also possible that another plugin is filtering wp_mail and causing the emails to be sent as plain text.

For mail issues such as these we recommend using a transactional email service such as Mandill or PostMark to send mail.

We have more information on these services here:

If you try a transactional email service and find it does not fix this issue it is likely something else, like another plugin, is filtering wp_mail() and interfering with Event Espresso emails.

The support post ‘Php upgrade issue?’ 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  Josh 2 months, 1 week ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!