This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by Diego Pereira 1 year ago.

Assigned support staff: Diego Pereira.

Author Posts
September 14, 2018 at 8:16 am

Jan-Philipp Wittrin

I am trying to: Recieve a Ticket Email produced by Event Tickets Plus. I use WooCommerce as Cart Solution.
When I order and pay by "Stripe" the WC Order Status is changed to "Completed"
automatically and the ticket is send correctly.
But when I order by "Invoice" the WC Order Status has to be changed by shopmanagers hand to send out the tickets. In this case the ticket email is empty. The bug is resolved when I turn off WPML. 🙁

Link to a page where the issue can be seen: hidden link

I expected to see: That the ticket email is not empty when I change the Order Status by Hand.

Instead, I got: An empty email as long as WPML is active.

September 16, 2018 at 3:29 pm #2738989

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello @Jan-Philipp Wittrin, welcome to the WPML support Forum!

The plugin is not listed on our compatible plugins list: https://wpml.org/documentation/plugins-compatibility

Does this issue occur only in translations or also in the original language? If it's only on the translations, please check if the email/strings are translated to all languages.

Please install this plugin, it will help us to debug this issue: https://wordpress.org/plugins/email-log/

I also checked the settings of your server through debug log and saw that some items need attention:

Increase WP memory
Please increase the PHP memory limit to 256mb. Currently this memory is set to 40mb only.
https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

MaxInputVars
Currently your server is configured with MaxInputVars = 5000, It's a good number but it would be nice if you could upgrade it to 10,000. There are two options to do this:
== php.ini file
Open the php.ini file and insert/edit this line:

max_input_vars = 10000

hidden link
== .htaccess file

php_value max_input_vars 10000

All the best,
Diego

September 24, 2018 at 6:44 am #2759462

Jan-Philipp Wittrin

Hi Diego,

sorry for the late reply.

Yes, it also happens in the main language.

I will install the email log and send you the log results to review.

The other issues I will solve within the next 48 hours.

Kindly,

JanPhilipp

September 24, 2018 at 5:47 pm #2761498

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks. Please let me know if it worked.

Kind regards,
Diego

October 2, 2018 at 7:03 am #2780506

Jan-Philipp Wittrin

Hi Diego.

I fixed the memory limit issue and raised the max input vars as suggested.

I installed your recommendet "Email Log" Plugin. Pretty cool 🙂

Here is the log. Unfortunatelly the issue is not solved :-(.

The weird thing is that it works just fine when I use a payment method which lets the system automatically sends out the tickets as soon the WooCommmerce order status changes to "Finalized" .

Only when I change the order status by hand and only if WPML is active the empty emails occur. I tried testing then to resend the tickets through WooCommerce. Then it looks all good again.

I hope you can help.

Here is the ticket email log of the emtpy email:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<em><u>hidden link</u></em>">
<html xmlns="<em><u>hidden link</u></em>">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Your tickets</title>
<meta name="viewport" content="width=device-width">
<style type="text/css">@media only screen and (max-width: 480px) {
			body, table, td, p, a, li, blockquote {
				-webkit-text-size-adjust : none !important;
			}

			body {
				width     : 100% !important;
				min-width : 100% !important;
			}

			body[yahoo] h2 {
				line-height : 120% !important;
				font-size   : 28px !important;
				margin      : 15px 0 10px 0 !important;
			}

			table.content,
			table.wrapper,
			table.inner-wrapper {
				width : 100% !important;
			}

			table.ticket-content {
				width   : 90% !important;
				padding : 20px 0 !important;
			}

			table.ticket-details {
				position       : relative;
				padding-bottom : 100px !important;
			}

			table.ticket-break {
				width : 100% !important;
			}

			td.wrapper {
				width : 100% !important;
			}

			td.ticket-content {
				width : 100% !important;
			}

			td.ticket-image img {
				max-width : 100% !important;
				width     : 100% !important;
				height    : auto !important;
			}

			td.ticket-details {
				width         : 33% !important;
				padding-right : 10px !important;
				border-top    : 1px solid #ddd !important;
			}

			td.ticket-details h6 {
				margin-top : 20px !important;
			}

			td.ticket-details.new-row {
				width      : 50% !important;
				height     : 80px !important;
				border-top : 0 !important;
				position   : absolute !important;
				bottom     : 0 !important;
				display    : block !important;
			}

			td.ticket-details.new-left-row {
				left : 0 !important;
			}

			td.ticket-details.new-right-row {
				right : 0 !important;
			}

			table.ticket-venue {
				position       : relative !important;
				width          : 100% !important;
				padding-bottom : 150px !important;
			}

			td.ticket-venue,
			td.ticket-organizer,
			td.ticket-qr {
				width      : 100% !important;
				border-top : 1px solid #ddd !important;
			}

			td.ticket-venue h6,
			td.ticket-organizer h6 {
				margin-top : 20px !important;
			}

			td.ticket-qr {
				text-align : left !important
			}

			td.ticket-qr img {
				float      : none !important;
				margin-top : 20px !important
			}

			td.ticket-organizer,
			td.ticket-qr {
				position : absolute;
				display  : block;
				left     : 0;
				bottom   : 0;
			}

			td.ticket-organizer {
				bottom : 0px;
				height : 100px !important;
			}

			td.ticket-venue-child {
				width : 50% !important;
			}

			table.venue-details {
				position : relative !important;
				width    : 100% !important;
			}

			a[href^="tel"], a[href^="sms"] {
				text-decoration : none;
				color           : black;
				pointer-events  : none;
				cursor          : default;
			}

			.mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
				text-decoration : default;
				color           : #006caa !important;
				pointer-events  : auto;
				cursor          : default;
			}
		}</style>
</head>
<body yahoo="fix" alink="#006caa" link="#006caa" text="#000000" bgcolor="#ffffff" style="width: 100% !important; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; margin: 0 auto; padding: 20px 0 0 0; background: #ffffff; min-height: 1000px; font-family: sans-serif; font-size: 14px;">
	<div style="margin: 0; padding: 0; width: 100% !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 145%; text-align: left;">
		<center>
					</center>
	</div>
</body>
</html>

And here after I pressed resend ticket email:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<em><u>hidden link</u></em>">
<html xmlns="<em><u>hidden link</u></em>">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Your tickets</title>
<meta name="viewport" content="width=device-width">
<style type="text/css">@media only screen and (max-width: 480px) {
			body, table, td, p, a, li, blockquote {
				-webkit-text-size-adjust : none !important;
			}

			body {
				width     : 100% !important;
				min-width : 100% !important;
			}

			body[yahoo] h2 {
				line-height : 120% !important;
				font-size   : 28px !important;
				margin      : 15px 0 10px 0 !important;
			}

			table.content,
			table.wrapper,
			table.inner-wrapper {
				width : 100% !important;
			}

			table.ticket-content {
				width   : 90% !important;
				padding : 20px 0 !important;
			}

			table.ticket-details {
				position       : relative;
				padding-bottom : 100px !important;
			}

			table.ticket-break {
				width : 100% !important;
			}

			td.wrapper {
				width : 100% !important;
			}

			td.ticket-content {
				width : 100% !important;
			}

			td.ticket-image img {
				max-width : 100% !important;
				width     : 100% !important;
				height    : auto !important;
			}

			td.ticket-details {
				width         : 33% !important;
				padding-right : 10px !important;
				border-top    : 1px solid #ddd !important;
			}

			td.ticket-details h6 {
				margin-top : 20px !important;
			}

			td.ticket-details.new-row {
				width      : 50% !important;
				height     : 80px !important;
				border-top : 0 !important;
				position   : absolute !important;
				bottom     : 0 !important;
				display    : block !important;
			}

			td.ticket-details.new-left-row {
				left : 0 !important;
			}

			td.ticket-details.new-right-row {
				right : 0 !important;
			}

			table.ticket-venue {
				position       : relative !important;
				width          : 100% !important;
				padding-bottom : 150px !important;
			}

			td.ticket-venue,
			td.ticket-organizer,
			td.ticket-qr {
				width      : 100% !important;
				border-top : 1px solid #ddd !important;
			}

			td.ticket-venue h6,
			td.ticket-organizer h6 {
				margin-top : 20px !important;
			}

			td.ticket-qr {
				text-align : left !important
			}

			td.ticket-qr img {
				float      : none !important;
				margin-top : 20px !important
			}

			td.ticket-organizer,
			td.ticket-qr {
				position : absolute;
				display  : block;
				left     : 0;
				bottom   : 0;
			}

			td.ticket-organizer {
				bottom : 0px;
				height : 100px !important;
			}

			td.ticket-venue-child {
				width : 50% !important;
			}

			table.venue-details {
				position : relative !important;
				width    : 100% !important;
			}

			a[href^="tel"], a[href^="sms"] {
				text-decoration : none;
				color           : black;
				pointer-events  : none;
				cursor          : default;
			}

			.mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
				text-decoration : default;
				color           : #006caa !important;
				pointer-events  : auto;
				cursor          : default;
			}
		}@media only screen and (max-width: 320px) {
			td.ticket-venue h6,
			td.ticket-organizer h6,
			td.ticket-details h6 {
				font-size : 12px !important;
			}
		}</style>
</head>
<body yahoo="fix" alink="#006caa" link="#006caa" text="#000000" bgcolor="#ffffff" style="width: 100% !important; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; margin: 0 auto; padding: 20px 0 0 0; background: #ffffff; min-height: 1000px; font-family: sans-serif; font-size: 14px;">
	<div style="margin: 0; padding: 0; width: 100% !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 145%; text-align: left;">
		<center>
							<table class="content" align="center" width="620" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" style="margin: 0 auto; padding: 0;"><tr>
<td align="center" valign="top" class="wrapper" width="620">
														<table class="inner-wrapper" border="0" cellpadding="0" cellspacing="0" width="620" bgcolor="#f7f7f7" style="margin: 0 auto !important; width: 620px; padding: 0;"><tr>
<td valign="top" class="ticket-content" align="left" width="580" border="0" cellpadding="20" cellspacing="0" style="padding: 20px; background: #f7f7f7;">
																					<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
<td class="ticket-image" valign="top" align="left" width="100%" style="padding-bottom: 15px !important;">
														<img src="<em><u>hidden link</u></em>" width="580" alt="Digital Mindshift Masterclass" style="border: 0; outline: none; height: auto; max-width: 100%; display: block; font-size: 14px; font-weight: bold; text-decoration: none; text-transform: capitalize; vertical-align: middle; margin-right: 10px;">
</td>
												</tr></table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"><tr>
<td valign="top" align="center" width="100%" style="padding: 0 !important; margin: 0 !important;">
													<h2 style="color: #0a0a0e; margin: 0 0 10px 0 !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-weight: 700; font-size: 28px; letter-spacing: normal; text-align: left; line-height: 100%; display: block;">
														<a style="color: #0a0a0e !important; font-weight: normal; text-decoration: underline; border: 0; outline: 0;" href="<em><u>hidden link</u></em>">Digital Mindshift Masterclass</a>
													</h2>
																											<h4 style="color: #0a0a0e; margin: 0 !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-weight: 700; font-size: 15px; letter-spacing: normal; text-align: left; line-height: 100%;">
															<span style="color: #0a0a0e !important;"><span class="tribe-event-date-start">23. Januar 2019, 9:00</span> - <span class="tribe-event-date-end">24. Januar 2019, 17:00</span></span>
														</h4>
																									</td>
											</tr></table>
<table class="whiteSpace" border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
<td valign="top" align="left" width="100%" height="30" style="height: 30px; background: #f7f7f7; padding: 0 !important; margin: 0 !important;">
													<div style="margin: 0; height: 30px;"></div>
												</td>
											</tr></table>
<table class="ticket-details" border="0" cellpadding="0" cellspacing="0" width="100%" align="center"><tr>
<td class="ticket-details" valign="top" align="left" width="100" style="padding: 0; width: 100px; margin: 0 !important;">
													<h6 style="color: #909090 !important; margin: 0 0 10px 0; font-family: 'Helvetica Neue', Helvetica, sans-serif; text-transform: uppercase; font-size: 13px; font-weight: 700 !important;">Ticket #</h6>
													<span style="color: #0a0a0e !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;">DMM-13-4KE1JS</span>
												</td>
												<td class="ticket-details" valign="top" align="left" width="120" style="padding: 0; width: 120px; margin: 0 !important;">
													<h6 style="color: #909090 !important; margin: 0 0 10px 0; font-family: 'Helvetica Neue', Helvetica, sans-serif; text-transform: uppercase; font-size: 13px; font-weight: 700 !important;">Ticket Type</h6>
													<span style="color: #0a0a0e !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;">Ticket für Digital Mindshift Masterclass</span>
												</td>
												<td class="ticket-details" valign="top" align="left" width="120" style="padding: 0 !important; width: 120px; margin: 0 !important;">
													<h6 style="color: #909090 !important; margin: 0 0 10px 0; font-family: 'Helvetica Neue', Helvetica, sans-serif; text-transform: uppercase; font-size: 13px; font-weight: 700 !important;">Purchaser</h6>
													<span style="color: #0a0a0e !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;">Jan-Philipp Wittrin</span>
												</td>
												<td class="ticket-details new-row new-left-row" valign="top" align="left" width="120" style="padding: 0; width: 120px; margin: 0 !important;">
													<h6 style="color: #909090 !important; margin: 0 0 10px 0; font-family: 'Helvetica Neue', Helvetica, sans-serif; text-transform: uppercase; font-size: 13px; font-weight: 700 !important;">Security Code</h6>
													<span style="color: #0a0a0e !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;">0157a32a3b</span>
												</td>
											</tr></table>
<table class="whiteSpace" border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
<td valign="top" align="left" width="100%" height="30" style="height: 30px; background: #f7f7f7; padding: 0 !important; margin: 0 !important;">
													<div style="margin: 0; height: 30px;"></div>
												</td>
											</tr></table>
<table class="ticket-venue" border="0" cellpadding="0" cellspacing="0" width="100%" align="center"><tr>
<td class="ticket-venue" valign="top" align="left" width="300" style="padding: 0 !important; width: 300px; margin: 0 !important;">
															<h6 style="color: #909090 !important; margin: 0 0 4px 0; font-family: 'Helvetica Neue', Helvetica, sans-serif; text-transform: uppercase; font-size: 13px; font-weight: 700 !important;">Veranstaltungsort</h6>
															<table class="venue-details" border="0" cellpadding="0" cellspacing="0" width="100%" align="center"><tr>
<td class="ticket-venue-child" valign="top" align="left" width="130" style="padding: 0 10px 0 0 !important; width: 130px; margin: 0 !important;">
																		<span style="color: #0a0a0e !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 13px; display: block; margin-bottom: 5px;">Berlin</span>
																		<a style="display: block; margin: 0; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 13px; color: #006caa !important; text-decoration: underline; font-weight: normal; border: 0; outline: 0;" href="<em><u>hidden link</u></em>">
																			Beletage by HR Pepper<br>
																			Tempelhofer Ufer 11, 10963 Berlin, Berlin 10963																		</a>
																	</td>
																	<td class="ticket-venue-child" valign="top" align="left" width="100" style="padding: 0 !important; width: 140px; margin: 0 !important;">
																		<span style="color: #0a0a0e !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 13px; display: block; margin-bottom: 5px;">+49-30-8687094690</span>
																																					<a href="<em><u>hidden link</u></em>" style="color: #006caa !important; display: block; margin: 0; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 13px; text-decoration: underline; font-weight: normal; border: 0; outline: 0;"><em><u>hidden link</u></em>;
																																			</td>
																</tr></table>
</td>
																										</tr></table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"><tr>
<td class="ticket-footer" valign="top" align="left" width="100%" style="padding: 0 !important; width: 100%; margin: 0 !important;">
													<a href="<em><u>hidden link</u></em>" style="color: #006caa !important; display: block; margin-top: 20px; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 13px; text-decoration: underline; font-weight: normal; border: 0; outline: 0;"><em><u>hidden link</u></em>;
												</td>
											</tr></table>
</td>
								</tr></table>
<table class="content" align="center" width="620" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" style="margin: 15px auto 0; padding: 0;"><tr>
<td align="center" valign="top" class="wrapper" width="620">
			<table class="inner-wrapper" border="0" cellpadding="0" cellspacing="0" width="620" bgcolor="#f7f7f7" style="margin: 0 auto !important; width: 620px; padding: 0;"><tr>
<td valign="top" class="ticket-content" align="left" width="140" border="0" cellpadding="20" cellspacing="0" style="padding: 20px; background: #f7f7f7;">
						<img src="<em><u>hidden link</u></em>" width="140" height="140" alt="QR Code Image" style="border: 0; outline: none; height: auto; max-width: 100%; display: block; font-size: 14px; font-weight: bold; text-decoration: none; text-transform: capitalize; vertical-align: middle; margin-right: 10px;">
</td>
					<td valign="top" class="ticket-content" align="left" border="0" cellpadding="20" cellspacing="0" style="padding: 20px; background: #f7f7f7;">
						<h3 style="color: #0a0a0e; margin: 0 0 10px 0 !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-style: normal; font-weight: 700; font-size: 28px; letter-spacing: normal; text-align: left; line-height: 100%; display: block;">
							<span style="color: #0a0a0e !important;">Für diese Veranstaltung einchecken</span>
						</h3>
						<p>
							Scannen Sie diesen QR Code an der Veranstaltung um einzuchecken.						</p>
					</td>
				</tr></table>
</td>
	</tr></table>
<table class="whiteSpace" border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
<td valign="top" align="left" width="100%" height="100" style="height: 100px; background: #ffffff; padding: 0 !important; margin: 0 !important;">
										<div style="margin: 0; height: 100px;"></div>
									</td>
								</tr></table>
</td>
					</tr></table>
</center>
	</div>
</body>
</html>


This is

October 2, 2018 at 3:16 pm #2782020

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for the feedback. Please send us the steps to reproduce the issue, I will check using the credentials of the first post.

Maybe I need to temporarily duplicate your website on my server to do more testing. Please let me know if this is ok for you.

Regards,
Diego

October 2, 2018 at 10:14 pm #2782918

Jan-Philipp Wittrin

Hi Diego.

thank you for your patient asistance.
Yes, if it helps, please feel free to duplicate the website on your server.

Do you want me to upload a fresher duplicate to the Google Drive to share with you?

Regards,

Jan-Philipp

October 3, 2018 at 2:25 pm #2784825

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks. I generated a new package on your website and duplicated it on my localhost. I did a test with the "Ticket Circle Mentor Bootcamp" (manual Payment, then change the order to "complete"). After that, the email was sent normally (see screenshot of the mail log).

Apparently it worked correctly on my server. Did I reproduce the issue correctly? If not, please tell us the steps to reproduce the issue and I will do some tests.

Kind regards,
Diego

October 3, 2018 at 4:36 pm #2785260

Jan-Philipp Wittrin

Hi Diego,

cool. Thank you for testing.

There might be one issue with your current duplicate: I turned of WPML because I had to go live with the site. All WPML plugins are disabled but still in the plugin folder.

Have you activated WPML in your duplicate?

Then the issue should appear.

Kind regards,

Jan-Philipp

October 4, 2018 at 2:28 pm #2787808

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Sorry, WPML was not enabled. But I enabled it now (WPML + String Translator + Translation management) and tested again. It worked too (see screenshot). So apparently it's something related to the server.

Please try the following:
- Disable all cache plugins
- Enable the debug log. Please see this guide: https://wpml.org/documentation/support/debugging-wpml/
- Send a new test email, with WPML disabled, to a new user
- Enable WPML + String Translator + Translation Management
- Repeat the test, with a new user

Check the email log to see if it worked. If not, please send us the content of your debug log, it will display more details about the error. The log is located on the wp-content folder. You can use this website to paste the content and send to us: https://pastebin.com/

Please let me know if it worked for you.

Regards,
Diego