Ticket email body includes HTML declaration in message

Home Forums Ticket Products Event Tickets Plus Ticket email body includes HTML declaration in message

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #286085
    James
    Participant

    Hello,
    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?

    #303174
    Casey D
    Member

    Hello 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

    #307909
    James
    Participant

    Hi Casey,
    I’ve pasted the HTML email code on pastie, available at
    Email html
    http://pastie.org/9367043

    The 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.

    #310908
    Casey D
    Member

    Hello 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)

    http://pastie.org/9367043

    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

    #318991
    James
    Participant

    Hi 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?

    #335614
    Casey D
    Member

    Hello 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

    #640345
    Casey D
    Member

    Hello 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Ticket email body includes HTML declaration in message’ is closed to new replies.