Support

Home Forums Event Espresso Premium Fatal error: Uncaught exception 'EE_Error' with message 'Could not create instan

Fatal error: Uncaught exception 'EE_Error' with message 'Could not create instan

Posted: April 23, 2017 at 6:45 am


Maria Spindler

April 23, 2017 at 6:45 am

When I created a new event, Event Espresso crashed somehow.
Error Message in Frontend and Backend:

"Could not create instance of class Datetime from row Datetime.DTT_ID=0&Datetime.EVT_ID=3031&Datetime.DTT_name=&Datetime.DTT_description=&Datetime.DTT_EVT_start=2017-05-18+06%3A00%3A00&Datetime.DTT_EVT_end=2017-05-18+15%3A00%3A00&Datetime.DTT_reg_limit=-1&Datetime.DTT_sold=0&Datetime.DTT_reserved=0&Datetime.DTT_is_primary=0&Datetime.DTT_order=1&Datetime.DTT_parent=0&Datetime.DTT_deleted=0&Event_CPT.ID=3031&Event_CPT.post_title=TEST+Eve&Event_CPT.post_content=&Event_CPT.post_name=test-eve&Event_CPT.post_date=2017-04-18+21%3A33%3A03&Event_CPT.post_excerpt=&Event_CPT.post_modified=2017-04-18+21%3A33%3A03&Event_CPT.post_author=1000&Event_CPT.post_parent=0&Event_CPT.menu_order=0&Event_CPT.post_status=publish&Event_CPT.comment_status=closed&Event_CPT.ping_status=closed&Event_Meta.EVT_display_desc=0&Event_Meta.EVT_display_ticket_selector=1&Event_Meta.EVT_visible_on=2017-04-18+19%3A33%3A03&Event_Meta.EVT_additional_limit=10&Event_Meta.EVT_default_registration_status=RAP&Event_Meta.EVT_member_only=0&Event_Meta.EVT_phone=&Event_Meta.EVT_allow_overflow=0&Event_Meta.EVT_timezone_string=&Event_Meta.EVT_external_URL=&Event_Meta.EVT_donations=0&Event_Meta.EVTM_ID=15"

The event is there in the database, but will not display correctly.
PLEASE HELP URGENTLY!
The Plugin is breaking the site.

greetings,
martina


Tony

  • Support Staff

April 24, 2017 at 7:18 am

Hi there,

Can you link us to a page we can use to view this, please?

When you created the event, did you first give the event a title before publishing the event?


Maria Spindler

April 25, 2017 at 2:22 pm

Thanks for the quick reply.

the link:
http://www.cos-collective.com/cms/

I do not remember if I gave a title or not before saving – anyway saving without title shouldn’t throw an uncaught exception, I suppose? Event Espresso would prevent saving without title, of course. Or you would have hundreds of support tickets like mine, wouldn’t you?

It would be helpful if you could provide information about how I can delete an event in the database completely, which database tables to touch and how to find the information related to the event in order to delete it wholly.

That’s the information I need from you, I believe.

I could not find any information about how to delete an event in the database in your documentation or in the forums.

Thank you!


Josh

  • Support Staff

April 25, 2017 at 2:33 pm

We don’t recommend going into the database to delete events. Instead, you can go to the Event Espresso > Events page, select the event (or click on Trash). Then once the event is in the trash you can view the trashed events and permanently delete them.

With regards to the fatal error, something on your website prevented the Datetime from being saved when you tried to save the event. Can you try temporarily deactivating all other WordPress plugins, then go to edit the event, then Save? Does the event now correctly save?


Maria Spindler

April 26, 2017 at 3:18 am

My dear Sir,

the problem is that I cannot reach the event in the backend, it is never shown. Otherwise – of course – I would have immediately done as you suggested.

But I have no other choice than deleting it in the database, since I have no access to the event in the WP backend. Therefore I desperately and quickly need the technical information in which database tables I have to delete the corresponding records, and how to find them (use event ID or what).

I also cannot try to create another event and see what happens when saving, the backend displays the same error and doesn’t allow me create another new event.

Nothing was changed in the system, the error appeared after saving that ominous event… I suppose there was a short connection failure so the event data wasn’t saved completely.

Please provide information about the database tables to check and the records to change/delete.

Thank you!


Josh

  • Support Staff

April 26, 2017 at 7:52 am

You do have a better option than going directly into the database. You can go to the native WordPress admin list table for the post type, and trash and delete the event post there.

Step 1: You add the following to a functions plugin:

add_filter( 'FHEE__EE_Register_CPTs__get_CPTs__cpts', 'dre_modify_visibility_of_event_espresso_cpt_in_admin' );
function dre_modify_visibility_of_event_espresso_cpt_in_admin( $cpt_registry_array ) {
    if ( isset( $cpt_registry_array['espresso_events'] ) ) {
        $cpt_registry_array['espresso_events']['args']['show_ui'] = true;
        $cpt_registry_array['espresso_events']['args']['show_in_menu'] = true;
        $cpt_registry_array['espresso_events']['domain'] = 'espresso_events';
    }
    return $cpt_registry_array;
}

Then you activate the plugin.

Step 2: The above code will add a new menu item to the WP dashboard, “Events”, where you can delete the event.


Maria Spindler

April 26, 2017 at 11:20 pm

Worked like a charm! Thank you very much! Problem solved.


Maria Spindler

April 27, 2017 at 12:13 am

Now I still have a massive problem. I cannot create a new event. If I do, the message I sent you in my first post is displayed again. Seems that datetimes are not created in the database or what… I took care to fill in all necessary fields for the new event, but the error appears when I try to save a new event.
So the error was not brought about by a connection failure, but appears every time I try to save a new event.

I noticed that EE displays a warning about missing pages in the backend: “A potential issue has been detected with one or more of your Event Espresso pages. Go to Event Espresso Critical Pages Settings to view your Event Espresso pages.”

If I look at the “Critical Pages” settings, everything is marked “OK” – in green color. No Page or shortcode seems to be missing or wrong.

Can you help me please?
Thank you!


Tony

  • Support Staff

April 27, 2017 at 4:02 am

It sounds like your site doesn’t have the correct permissions to write to the EE tables. Can you check with your host that your site has the correct permissions to write to the {table_prefix}_esp_* tables?

Did events previously work and now do not or is this a new install?


Maria Spindler

May 3, 2017 at 12:25 pm

Thank you for the advice, I will check with the hosting provider if there is anything wrong with the db tables’ permissions. Unfortunately I cannot look into the privileges myself. – I will inform you about the answers.

Answer to your question:
The installation has been developed on a local server and has now been moved to the server of the hosting provider. Everything worked fine after the transfer, except the creation of a new event is not possible and produces the error.


Josh

  • Support Staff

May 3, 2017 at 12:41 pm

So can you confirm that you could create a new event before the site was moved to the remote server?


Maria Spindler

May 3, 2017 at 11:20 pm

Yes I can confirm that, just tried it again on the local server, no problem there.-

I remember I had to change the collation of some database tables to avoid import failures on the remote server.
The collation of most of the *esp tables is utf8mb4_unicode_ci, whereas most of the other wordpress tables have the collation utf8_general_ci.
Do you think a wrong collation could be the reason of the error? Should I set the collations of all *esp tables to utf8_general_ci?


Josh

  • Support Staff

May 4, 2017 at 9:30 am

Changing the collation of a database table that already has data without properly converting the data tends to cause problems. The way forward will be to find out why there were import failures in the first place. Perhaps the remote server doesn’t support utf8mb4_unicode_ci, in which case you can the server admin if they can make that allowance. Then you should be able to re-import the data from the local server with no problems.


Maria Spindler

May 4, 2017 at 11:04 am

thank you very much for your support, I will try that but time is running out a little … well maybe it will be best to reinstall everything new. do i also have to delete all EE addons and reinstall them? I suppose so, but what would you suggest? – we don’t have so many events yet, but it’s still some work, also the configuration of the plugins and so on… Are the database tables deleted when I deinstall all EE and its AddOns?


Maria Spindler

May 4, 2017 at 11:48 am

Before I try a re-import the data of the *esp tables I have 2 questions:
– I performed a version upgrade of EE core and some AddOns on the remote server. will the data imported from the older version fit?
– will it be enough to re-import the *esp tables? I mean, all tables with names starting with “wp_esp”?
… but I have to get this up and running quickly, so maybe a clean solution is the better way to go. Please be so kind to tell me what I can do to ensure a clean deinstallation in a way that removes ALL the EE related tables.
– Thank you!


Josh

  • Support Staff

May 4, 2017 at 12:16 pm

– I performed a version upgrade of EE core and some AddOns on the remote server. will the data imported from the older version fit?

You should first perform the same upgrades on the local server before migrating data to the remote server.

– will it be enough to re-import the *esp tables? I mean, all tables with names starting with “wp_esp”?

No because Event Espresso saves events, venues, and contacts to the wp_posts table. Settings for Event Espresso are saved to the wp_options table.

Please be so kind to tell me what I can do to ensure a clean deinstallation in a way that removes ALL the EE related tables.

You can go to the Event Espresso > Maintenance > Reset page and click on the button that says:

Permanently Delete ALL Event Espresso Tables and Data


Maria Spindler

May 5, 2017 at 7:26 am

After the reinstallation of EE and all AddOns everything seems to work now.

– Except that the Headers of the Transaction Emails seem to be broken, above the Header Section (grey) with the logo html tags appear:
< div class=”content” style=”margin: 0 auto; padding: 15px; font-family: ‘Helvetica Neue’, ‘Helvetica’, Helvetica, Arial, sans-serif; display: block ; max-width: 600px;”>
So there is a blank after the opening “<” sign, maybe this causes the header to break.
could you help me find a quick way to repair this for alle mail headers at once? Is there a global template for all transaction email headers which I can correct?
producing a custom template for every email we want to use is a bit too time-consuming at the moment, we will do this later.
Thank you!


Josh

  • Support Staff

May 5, 2017 at 7:39 am

Those email templates are stored in the database. The quick way to reset them is you go into the editor for the emails, and click on the reset button.


Maria Spindler

May 7, 2017 at 3:28 am

didn’t help…

only the emails to the seller got a litte more ugly, but never mind.
the emails to the booking person are still compromised.

isn’t there a global php-template for the email header, where I can correct the html-tags before the header?
yes I know php :o)

good day to you


Maria Spindler

May 7, 2017 at 10:36 pm

Any ideas?
I installed everything new, so the email templates – even if they are only stored in the database – should not be compromised in any way.
Never before heard of that error?


Maria Spindler

May 8, 2017 at 8:45 am

Please help quickly, event espresso is unuseable, we cannot send out those corrupted emails!
You didn’t react for 2 1/2 days now…

If I should create a new ticket, please just tell, or if there are any other formal problems for you in answering to my problem.
Otherwise I ask for quick support, please.

Again: on a freshly installed Event Espresso System the Emails sent to the customer are corrupted, showing some dubious HTML-Tags before the content.

Please help.


Maria Spindler

May 8, 2017 at 8:46 am

sorry, i was wrong, you didn’t react for 1 1/2 days.


Josh

  • Support Staff

May 8, 2017 at 8:50 am

We have seen this previously and it turned out to be an issue with the mail server configuration used by the host.
I can recommend using a transactional email service such as the ones listed here:
https://eventespresso.com/wiki/postmark-app-mandrill-transactional-email-handling-services/
Then you can confirm if the same issue happens when using the above.

Please note that support hours are:
Monday – Friday:
7AM – 7PM EST
12PM – 12AM UTC


Maria Spindler

May 9, 2017 at 12:35 am

good morning.
I am very sorry, I didn’t know your business hours, thought there was also weekend support.

in the article you suggested it says: “Are you having email deliverability issues such as emails getting lost or some being marked as SPAM or junk mail?”
no we don’t have any issues like that.
our problem is different. the code of the emails is broken.
Following the instructions in the post I found here https://eventespresso.com/topic/confirmation-emails-html/ I found that another plugin (eStore) set the email type to plain. I changed that but it didn’t help.

Before I try your advice to use a transactional email service, I send you the html code of one of the transaction emails, maybe it is of help finding the cause of the problem. As you can see, there are incorrect line breaks (look at the first <!DOCTYPE… line), causing the email to look broken.

<html>
<head>
<title>Registration Pending Payment</title>
<link rel="important stylesheet" href="chrome://messagebody/skin/messageBody.css">
</head>
<body>
<table border=0 cellspacing=0 cellpadding=0 width="100%" class="header-part1"><tr><td><b>Betreff: </b>Registration Pending Payment</td></tr><tr><td><b>Von: </b>Challenging Organisations and Society <office@cos-collective.com></td></tr><tr><td><b>Datum: </b>09.05.2017 07:09</td></tr></table><table border=0 cellspacing=0 cellpadding=0 width="100%" class="header-part2"><tr><td><b>An: </b>bam@diedesign.at</td></tr></table><br>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w
ww.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://w
ww.w3.org/1999/xhtml" style="margin: 0; padding: 0; font-family: 'Helveti
ca Neue', 'Helvetica', Helvetica, Arial, sans-serif;">
  <head style="m
argin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica
, Arial, sans-serif;">
<!-- If you delete this meta tag, Half Life 3 will
 never be released. -->
    <meta name="viewport" content="width=de
vice-width" style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 
'Helvetica', Helvetica, Arial, sans-serif;" />
    <meta http-equiv="Co
ntent-Type" content="text/html; charset=utf-8" style="margin: 0; padd
ing: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-
serif;" />
<!-- Facebook sharing information tags -->
    <meta propert
y="og:title" content="Registration Pending Payment" style="margin: 0;
 padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, 
sans-serif;" />
    <title style="margin: 0; padding: 0; font-family: '
Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;">Registration P
ending Payment</title>
  </head>
  <body bgcolor="#FFFFFF" topmargin
="0" leftmargin="0" marginheight="0" marginwidth="0" style="margi
n: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Ar
ial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adj
ust: none; height: 100%; width: 100%!important;">
<table class="head-wr
ap" bgcolor="#999999" style="margin: 0; padding: 0; font-family: 'Helve
tica Neue', 'Helvetica', Helvetica, Arial, sans-serif; width: 100%;"><tbody
 style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica'
, Helvetica, Arial, sans-serif;"><tr style="margin: 0; padding: 0; font-f
amily: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;"><td st
yle="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', H
elvetica, Arial, sans-serif;"></td>
<td class="header container" style
="margin: 0 auto!important; padding: 0; font-family: 'Helvetica Neue', 'H
elvetica', Helvetica, Arial, sans-serif; clear: both!important; display: bl
ock!important; max-width: 600px!important;">
<div class="content" style
="margin: 0 auto; padding: 15px; font-family: 'Helvetica Neue', 'Helvetic
a', Helvetica, Arial, sans-serif; display: block; max-width: 600px;">
<ta
ble bgcolor="#999999" style="margin: 0; padding: 0; font-family: 'Helve
tica Neue', 'Helvetica', Helvetica, Arial, sans-serif; width: 100%;"><tbody
 style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica'
, Helvetica, Arial, sans-serif;"><tr style="margin: 0; padding: 0; font-f
amily: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;"><td st
yle="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', H
elvetica, Arial, sans-serif;"><img src="https://www.cos-collective.com/cm
s/wp-content/uploads/cos-logo-1.png" id="headerImage" style="margin: 0;
 padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, 
sans-serif; max-width: 100%;" /></td>
<td align="right" style="margin
: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Ari
al, sans-serif;">
<h6 class="collapse" style="margin: 0!important; pa
dding: 0; font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helv
etica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #444; li
ne-height: 1.1; margin-bottom: 15px; padding-bottom: 15px; padding-top: 10p
x; font-size: 14px; font-weight: 900; text-transform: uppercase;">Challengi
ng Organisations and Society</h6>
</td>
</tr></tbody></table></div>
<
/td>
<td style="margin: 0; padding: 0; font-family: 'Helvetica Neue', '
Helvetica', Helvetica, Arial, sans-serif;"></td>
</tr></tbody></table><ta
ble class="body-wrap" style="margin: 0; padding: 0; font-family: 'Helve
tica Neue', 'Helvetica', Helvetica, Arial, sans-serif; width: 100%;"><tbody
 style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica'
, Helvetica, Arial, sans-serif;"><tr style="margin: 0; padding: 0; font-f
amily: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;"><td st
yle="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', H
elvetica, Arial, sans-serif;"></td>
<td class="container" bgcolor="#F
FFFFF" style="margin: 0 auto!important; padding: 0; font-family: 'Helveti
ca Neue', 'Helvetica', Helvetica, Arial, sans-serif; clear: both!important;
 display: block!important; max-width: 600px!important;">
<div class="co
ntent" style="margin: 0 auto; padding: 15px; font-family: 'Helvetica Neue
', 'Helvetica', Helvetica, Arial, sans-serif; display: block; max-width: 60
0px;">
<table style="margin: 0; padding: 0; font-family: 'Helvetica Neu
e', 'Helvetica', Helvetica, Arial, sans-serif; width: 100%;"><tbody style
="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helv
etica, Arial, sans-serif;"><tr style="margin: 0; padding: 0; font-family:
 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;"><td style=
"margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helveti
ca, Arial, sans-serif;">
<h1 style="margin: 0; padding: 0; font-family:
 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica
, Arial, 'Lucida Grande', sans-serif; color: #000; line-height: 1.1; margin
-bottom: 15px; padding-bottom: 15px; padding-top: 10px; font-size: 36px; fo
nt-weight: 200;">Hello, Martina:</h1>
<p style="margin: 0; padding: 0; 
font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; f
ont-size: 14px; font-weight: normal; line-height: 1.6; margin-bottom: 10px;
">									Your registration(s) is/are pending payment fo
r the following events:									</p>
<div style="marg
in: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, A
rial, sans-serif;">
<div class="content" style="margin: 0 auto; paddi
ng: 15px; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, san
s-serif; display: block; max-width: 600px;">
<table style="margin: 0; p
adding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sa
ns-serif; width: 100%;"><tbody style="margin: 0; padding: 0; font-family:
 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;"><tr style=
"margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helveti
ca, Arial, sans-serif;"><td style="margin: 0; padding: 0; font-family: 'H
elvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;">
<p class="
callout" style="margin: 0; padding: 15px; font-family: 'Helvetica Neue', 
'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: no
rmal; line-height: 1.6; margin-bottom: 15px; background-color: #ECF8FF;"><s
trong style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helve
tica', Helvetica, Arial, sans-serif;">Event: <a href="https://www.cos-col
lective.com/cms/events/test-event/" style="margin: 0; padding: 0; font-fa
mily: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; color: #
2BA6CB; font-weight: bold;">Test-Event</a></strong></p>
</td>
</tr></tb
ody></table></div>
<div class="column-wrap" style="margin: 0 auto; pa
dding: 0!important; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, 
Arial, sans-serif; max-width: 600px!important;">
<div class="column-lar
ge" style="margin: 0 auto; padding: 0; font-family: 'Helvetica Neue', 'He
lvetica', Helvetica, Arial, sans-serif; padding-left: 10px; width: 550px;">

<table align="left" style="margin: 0; padding: 0; font-family: 'Helv
etica Neue', 'Helvetica', Helvetica, Arial, sans-serif; width: 100%;"><tbod
y style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica
', Helvetica, Arial, sans-serif;"><tr style="margin: 0; padding: 0; font-
family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;"><td s
tyle="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', 
Helvetica, Arial, sans-serif;">
<h3 style="margin: 0; padding: 0; font-
family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', He
lvetica, Arial, 'Lucida Grande', sans-serif; color: #000; line-height: 1.1;
 margin-bottom: 15px; padding-bottom: 15px; padding-top: 10px; font-size: 2
4px; font-weight: 500;">Registrant(s):</h3>
<h4 style="margin: 0; paddi
ng: 0; font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helveti
ca Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000; line-
height: 1.1; margin-bottom: 15px; padding-bottom: 15px; padding-top: 10px; 
font-size: 19px; font-weight: 500;">Martina Bartik</h4>
<ul style="marg
in: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, A
rial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; m
argin-bottom: 10px;"><li style="margin: 0; padding: 0; font-family: 'Helv
etica Neue', 'Helvetica', Helvetica, Arial, sans-serif; list-style-position
: inside; list-style-type: none; margin-left: 5px; padding-bottom: 5px;"><s
trong style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helve
tica', Helvetica, Arial, sans-serif;">Registration Code:</strong> 4-7-1-5d6
5</li>
<li style="margin: 0; padding: 0; font-family: 'Helvetica Neue',
 'Helvetica', Helvetica, Arial, sans-serif; list-style-position: inside; li
st-style-type: none; margin-left: 5px; padding-bottom: 5px;"><strong style
="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helv
etica, Arial, sans-serif;">Tickets:</strong></li>
</ul><ul style="margi
n: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Ar
ial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.6; ma
rgin-bottom: 10px;"><li style="margin: 0; padding: 0; font-family: 'Helve
tica Neue', 'Helvetica', Helvetica, Arial, sans-serif; list-style-position:
 inside; list-style-type: none; margin-left: 5px; padding-bottom: 5px;">

	<strong style="margin: 0; padding: 0; font-family: 'Helvetica Neue', '
Helvetica', Helvetica, Arial, sans-serif;">Normal Ticket</strong>
</li>

<li style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helv
etica', Helvetica, Arial, sans-serif; list-style-position: inside; list-sty
le-type: none; margin-left: 5px; padding-bottom: 5px;">
	Dates/Times:

<ul style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helv
etica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal;
 line-height: 1.6; margin-bottom: 10px;"><li style="margin: 0; padding: 0
; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
 list-style-position: inside; list-style-type: none; margin-left: 5px; padd
ing-bottom: 5px;">June 4, 2017 8:00 am - June 4, 2017 5:00 pm</li>
</ul><
/li>
</ul><hr style="margin: 10px 0; padding: 0; font-family: 'Helvetic
a Neue', 'Helvetica', Helvetica, Arial, sans-serif;" /></td>
</tr></tbody
></table></div>
<div class="clear" style="margin: 0; padding: 0; font
-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; clear
: both; display: block;"></div>
</div></div>
<p class="callout" style
="margin: 0; padding: 15px; font-family: 'Helvetica Neue', 'Helvetica', H
elvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; line-hei
ght: 1.6; margin-bottom: 15px; background-color: #ECF8FF;">You can <a href
="https://www.cos-collective.com/cms/cos-creations-event-registration/?ut
s=1494306549&e_reg_url_link=1-5d659dc089d0ead059dd66ea96a988ac&
step=payment_options&revisit=1#checkout" style="margin: 0; paddin
g: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-se
rif; color: #2BA6CB; font-weight: bold;">make a payment here »</a>.</p
>
</td>
</tr></tbody></table></div>
</td>
<td style="margin: 0; p
adding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sa
ns-serif;"></td>
</tr></tbody></table><table class="footer-wrap" style
="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helv
etica, Arial, sans-serif; clear: both!important; width: 100%;"><tbody style
="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helv
etica, Arial, sans-serif;"><tr style="margin: 0; padding: 0; font-family:
 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;"><td style=
"margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helveti
ca, Arial, sans-serif;"></td>
<td class="container" style="margin: 0 
auto!important; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Hel
vetica, Arial, sans-serif; clear: both!important; display: block!important;
 max-width: 600px!important;">
<table class="social" width="100%" sty
le="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', He
lvetica, Arial, sans-serif; background-color: #ebebeb;"><tbody style="mar
gin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, 
Arial, sans-serif;"><tr style="margin: 0; padding: 0; font-family: 'Helve
tica Neue', 'Helvetica', Helvetica, Arial, sans-serif;"><td style="margin
: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Ari
al, sans-serif;">
<table class="column" align="left" style="margin:
 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Aria
l, sans-serif; float: left; width: 280px; min-width: 279px;"><tbody style
="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helv
etica, Arial, sans-serif;"><tr style="margin: 0; padding: 0; font-family:
 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;"><td style=
"margin: 0; padding: 15px; font-family: 'Helvetica Neue', 'Helvetica', Helv
etica, Arial, sans-serif;">
<h5 style="margin: 0; padding: 0; font-fami
ly: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvet
ica, Arial, 'Lucida Grande', sans-serif; color: #000; line-height: 1.1; mar
gin-bottom: 15px; padding-bottom: 15px; padding-top: 10px; font-size: 16px;
 font-weight: 900;">Connect with Us:</h5>
<p style="margin: 0; padding:
 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-seri
f; font-size: 14px; font-weight: normal; line-height: 1.6; margin-bottom: 1
0px;">												<a class="soc-btn fb" href="h
ttps://www.facebook.com/COSCollective/" style="margin: 0; padding: 3px 7p
x; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif
; color: #FFF; background-color: #3B5998!important; display: block; font-si
ze: 12px; font-weight: bold; margin-bottom: 10px; text-align: center; text-
decoration: none;">Facebook</a><br style="margin: 0; padding: 0; font-fam
ily: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;" /><a cla
ss="soc-btn tw" href="" style="margin: 0; padding: 3px 7px; font-fami
ly: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; color: #FF
F; background-color: #1daced!important; display: block; font-size: 12px; fo
nt-weight: bold; margin-bottom: 10px; text-align: center; text-decoration: 
none;">Twitter</a><br style="margin: 0; padding: 0; font-family: 'Helveti
ca Neue', 'Helvetica', Helvetica, Arial, sans-serif;" /><a class="soc-btn
 gp" href="" style="margin: 0; padding: 3px 7px; font-family: 'Helvetic
a Neue', 'Helvetica', Helvetica, Arial, sans-serif; color: #FFF; background
-color: #DB4A39!important; display: block; font-size: 12px; font-weight: bo
ld; margin-bottom: 10px; text-align: center; text-decoration: none;">Google
+</a>
											</p></td>
</tr></tbody></table><
table class="column" align="left" style="margin: 0; padding: 0; font-
family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; float:
 left; width: 280px; min-width: 279px;"><tbody style="margin: 0; padding:
 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-seri
f;"><tr style="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Hel
vetica', Helvetica, Arial, sans-serif;"><td style="margin: 0; padding: 15
px; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-seri
f;">
<h5 style="margin: 0; padding: 0; font-family: 'HelveticaNeue-Ligh
t', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Gra
nde', sans-serif; color: #000; line-height: 1.1; margin-bottom: 15px; paddi
ng-bottom: 15px; padding-top: 10px; font-size: 16px; font-weight: 900;">Con
tact Info:</h5>
<p style="margin: 0; padding: 0; font-family: 'Helvetic
a Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-w
eight: normal; line-height: 1.6; margin-bottom: 10px;">						
						Phone: <strong style="margin: 0; padding: 0; font-famil
y: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;">+43 664 40
23176</strong><br style="margin: 0; padding: 0; font-family: 'Helvetica N
eue', 'Helvetica', Helvetica, Arial, sans-serif;" />
						
						Email:												<strong style
="margin: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helv
etica, Arial, sans-serif;"><a href="mailto:office@cos-collective.com" tar
get="_blank" style="margin: 0; padding: 0; font-family: 'Helvetica Neue
', 'Helvetica', Helvetica, Arial, sans-serif; color: #2BA6CB;">office@cos-c
ollective.com</a></strong>
											</p></td>
<
/tr></tbody></table></td>
</tr></tbody></table></td>
<td style="margi
n: 0; padding: 0; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Ar
ial, sans-serif;"></td>
</tr></tbody></table></body>
</html>

</body>
</html>

Any ideas about that?
You still think that using a transactional email service will solve the problem?
If yes, I will try. I just don’t want to undergo a lot of work/some costs to find it didn’t help at all.

THANKS for your efforts…


Tony

  • Support Staff

May 9, 2017 at 6:23 am

isn’t there a global php-template for the email header, where I can correct the html-tags before the header?

If this was an issue with EE’s template files we would see this same problem across all sites using Event Espresso, but we do not, its currently only happening on your site.

We have seen something similar happen on a couple of other sites which as Josh mentioned turned out to be the host mail server setup.

Before I try your advice to use a transactional email service, I send you the html code of one of the transaction emails, maybe it is of help finding the cause of the problem. As you can see, there are incorrect line breaks (look at the first <!DOCTYPE… line), causing the email to look broken.

There is nothing wrong with the DOCTYPE set in the output you mentioned unless I’m completely missing something with this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w
ww.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

The problem is the additional HTML that’s been added to the beginning of the email:

<html>
<head>
<title>Registration Pending Payment</title>
<link rel="important stylesheet" href="chrome://messagebody/skin/messageBody.css">
</head>
<body>
<table border=0 cellspacing=0 cellpadding=0 width="100%" class="header-part1"><tr><td><b>Betreff: </b>Registration Pending Payment</td></tr><tr><td><b>Von: </b>Challenging Organisations and Society <office@cos-collective.com></td></tr><tr><td><b>Datum: </b>09.05.2017 07:09</td></tr></table><table border=0 cellspacing=0 cellpadding=0 width="100%" class="header-part2"><tr><td><b>An: </b>bam@diedesign.at</td></tr></table><br>

And at the end:


------------
</body>
</html>

So the EE email HTML is being wrapped within another header, opening the HTML and BODY tags, then closing them. So theres a HTML doc, within a HTML Body tag?

That additional code is not from Event Espresso, so either another plugin is hooking into wp_mail() and adding its own header to every email generated on the site, or your host has it setup to do that.

You still think that using a transactional email service will solve the problem?

If its another plugin its not likely using a transactional email service will help, the plugin will continue to hook in and add those details to the email before its then sent off to the transactional email service to send.

If it’s the hosts mail server setup then using a transactional email service will help.

If yes, I will try. I just don’t want to undergo a lot of work/some costs to find it didn’t help at all.

Some of the services available have a free tier for you to use so there is no cost involved for yourself whilst testing this (other than time to setup) and most of them a farily easy to setup so you can test as they use a plugin you install and then add your api details for the service you want to use.

Have you tried de-activating ALL non EE plugins AND switching to a default theme such as twentyseventeen and creating a NEW registration to view the email from that?


Maria Spindler

May 10, 2017 at 6:41 am

thank you for your detailed answer! so at least now I know our options.

Unfortunately a new problem has arisen, hopefully easy to solve: we configured all the available system fields to be shown in the registration form. but only the personal data group is shown, not the address data. where can we configure that?


Josh

  • Support Staff

May 10, 2017 at 6:46 am

You configure which question groups get displayed for the event within the event editor. Here’s a link to the documentation that explains more:

https://eventespresso.com/wiki/questions/#how_to_set_questions_for_registants


Maria Spindler

May 21, 2017 at 9:58 am

Thank you for your answer, everything has been done properly – as advised – already. All questions (“First Name”, “Last Name”, “Country” etc.) have been assigned to one of the 2 question groups, “Personal information” and “Address information”.
But only the personal information group is shown in the reg. form, the address info isn’t shown – although both question groups are configured exactly alike (except the question fields, of course).
I don’t think it’s a configuration problem.
What catches the eye: all questions are marked as “system question” and the question groups as “system question group” – maybe there lies the flaw?


Maria Spindler

May 21, 2017 at 10:11 am

sorry sorry now I found it, it’s configured in the event, not in the reg. form settings… thank you!!


Tony

  • Support Staff

May 22, 2017 at 5:36 am

That’s correct.

You create your questions/question groups and assignments within the Reg form settings, but each individual event may ask different questions, so each event has its own individual settings for which question groups are shown on its registration form – http://take.ms/1CBvc

The support post ‘Fatal error: Uncaught exception 'EE_Error' with message 'Could not create instan’ 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