• Resolved Pablostevens71

    (@pablostevens71)


    When sending the Completed Order email, Event Tickets throws a fatal error if I enter more than one recipient in the “Additional Recipients” field. This worked previously and only became an issue with the latest release: 5.26.0.1 

    PHP Fatal error:  Uncaught InvalidArgumentException: Email address is invalid.
    in /wp-content/plugins/event-tickets/common/vendor/vendor-prefixed/stellarwp/shepherd/src/Tasks/Email.php:81
    Stack trace:
    #0 ... Shepherd\Tasks\Email->validate_args()
    #1 ... Shepherd\Tasks\Email->__construct('paul@xxxxxxxxxxxxx.com, other@xxxxxxxxxxx.com', '[xxxxxxx]: Completed Order', ...)
    #2 ... TEC\Tickets\Emails\Dispatcher->send()
    #3 ... Completed_Order->send()
    ...
    //actual emails removed for privacy

    Steps to reproduce:

    1. Go to Events → Settings → Emails → Completed Order.
    2. Enter two or more emails in “Additional Recipients”, separated by commas (as the UI instructs).
    3. Complete a test order.

    Observed behavior:

    • With a single recipient, the email sends fine.
    • With multiple recipients (comma-separated), checkout crashes with the error above.
    • The system is treating the whole comma-separated string as one invalid email instead of splitting it.

    Expected behavior:

    • Multiple recipients should be parsed correctly when separated by commas, as the settings field indicates.

    Workaround tested:

    • Creating a single distribution list/alias and entering only that email avoids the crash, but the “multiple comma-separated addresses” feature appears broken in this version.

    Can you confirm if this is a known bug, and if there’s a fix or patch in a newer release?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dimitris Pantazis

    (@dpantazis)

    Hello @pablostevens71,

    Thank you for the well detailed report. We were able to reproduce your reported issue and the fix will be included in an upcoming release very soon.

    Kind Regards,
    Dimi

    Plugin Author Dimitris Pantazis

    (@dpantazis)

    A workaround until the fix is out could also be the following:

    Remove any additional email addresses from the recipient field at Events → Settings → Emails → Completed Order.

    Add them as BCC using the filter below:

    add_filter(
    'tec_tickets_emails_dispatcher_completed-order_headers',
    function ( $headers ) {
    $headers['Bcc'] = 'johndoe<johndoe@email.com>';
    return $headers;
    }
    );

    Plugin Support Darian

    (@d0153)

    Hi @pablostevens71

    I hope you’re doing well. I just wanted to touch base and check in with you. It’s been a little while since we’ve heard from you. I was just curious if you had the chance to try out the recommendation provided above.

    Let us know if there’s anything we can assist you with.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It looks like we haven’t heard back from you in a while, so I’ll go ahead and close this thread for now.

    If you still need assistance, feel free to reopen this thread or start a new one

    Plugin Author Dimitris Pantazis

    (@dpantazis)

    Hey @pablostevens71 ,

    We have just released a fix for this issue.

    Thank you,
    Dimi

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.