Home › Forums › Ticket Products › Event Tickets Plus › Ticket email body includes HTML declaration in message
- This topic has 6 replies, 2 voices, and was last updated 11 years, 8 months ago by
Casey D.
-
AuthorPosts
-
July 5, 2014 at 9:17 am #286085
James
ParticipantHello,
We’re having a problem with the ticket emails showing part of a HTML declaration in the visible body of the email and a fuller HTML declaration when viewing the source of the message.Shown in body: “http://www.w3.org/TR/REC-html40/loose.dtd”>
Shown in code:
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”<br />
“http://www.w3.org/TR/REC-html40/loose.dtd”><br />
<html><body>
<p>July 15 @ 7:00 pm Ticket #318<br></p>
<p>Ticket<br />
Type:[ticket name removed]</p>
<p>Purchaser:[customer name removed]</p>
<p>Security Code:f39945efdc</p>
<p><b>Venue</b></p>
<address>[address removed]<br><br />
[phone number removed]<br><br><br />
</address>
<p> Organizer: [organizer removed] </p>
<p> </body></html>—————
The ticket code seems to be including it’s own HTML to open and close the <body> even though it’s not in email.php
Can you help?
July 7, 2014 at 6:00 pm #303174Casey D
MemberHello jcpenrose83,
Thanks for contacting us and sorry you are having this issue!
Could post that code to pastie.org or another service? I want to make sure I am seeing it correctly.
Also, where is that code from and where is email.php? I’m not sure if our code is responsible for the email template, we may just leverage WooCommerce, but I may be mistaken.
Lastly, can you please confirm that this happens when you disable all other plugins and switch to a standard theme? There may be other issues if it continues to happen.
Thanks!
– Casey Driscoll
July 8, 2014 at 2:38 am #307909James
ParticipantHi Casey,
I’ve pasted the HTML email code on pastie, available at
Email html
http://pastie.org/9367043The email.php is being stored at “/wp-content/themes/nkb/tribe-events/tickets
The code in this php file is available at,
http://pastie.org/9367072
If WP Email template pro is disabled no ticket email is received, though order confirmation email arrives fine.
Thanks, James.July 8, 2014 at 9:53 am #310908Casey D
MemberHello jcpenrose83,
Thanks for the updated information! We can’t guarantee interoperability with ever plugin on the public repo, although we do our best to make sure our plugins work with popular themes and plugins with over 100,000 downloads.
And ultimately, customizations (especially with conflicting plugins) go beyond the scope of the forums.
That said I’ll do what I can to help!
My gut says that ‘<br />’ at the end of line 4 is clearly the problem, as it is breaking the DOCTYPE string (which is then auto-closed by some step down the line)
If you check line 35 of the-events-calendar/views/tickets/email.php you’ll see the full doctype declaration with no line break. I don’t see a similar line in your template, but if you find where that is added in the other plugin and fix it, I believe the problem will go away.
Does this make sense? Let me know if this doesn’t work for you.
Cheers!
– Casey Driscoll
July 9, 2014 at 2:40 am #318991James
ParticipantHi Casey,
This doesn’t seem to be the cause of the problem, I’ve removed the email template and used the original email.php (http://pastie.org/9370900) – however I still get the code in the email as (http://pastie.org/9370941 source of received email). It seems to be wrapping each html tag with <p></p>. This is only happening on the ticket email in this plugin, if I try to send the attendees email (from this plugin) it is rendered successfully, without the <p> tags, as are all other emails on the site.
Can you help please?
July 10, 2014 at 8:56 am #335614Casey D
MemberHello jcpenrose83,
Sorry to hear that! I thought might help.
This still sounds like a conflict with WP Email Template Pro, unfortunately. Actually, it might possibly be a conflict with WooCommerce and that plugin.
Our plugin only leverages WooCommerce for emails (we fill it with our content), so the <p> tags must be added up the pipeline.
I apologize if this sounds like shifting blame (which can be frustrating when you’re trying to get help on support forums!) but I’m not sure we have the expertise or resources to support another developer’s conflicts. Since we know the emails send on a vanilla system, the conflicts must lie elsewhere.
Sorry for the disappointing answer! You may want to ask the WooCommerce forums, and definitely ask the WP Email Template Pro forums for assistance. We are happy to work with other developers to create best practice solutions, so if there is anything else we can do please be sure to contact us.
– Casey Driscoll
August 11, 2014 at 10:07 am #640345Casey D
MemberHello jcpenrose83,
We typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Cheers!
– Casey Driscoll
-
AuthorPosts
- The topic ‘Ticket email body includes HTML declaration in message’ is closed to new replies.
