v1.2.2 — Critical: e-mail send no longer crashes the withdrawal (WP Mail SMTP)
Critical fix
A merchant running WP Mail SMTP (free) reported a fatal "critical error" when a consumer confirmed a withdrawal, and when clicking admin Resend e-mail, across several WooCommerce sites.
An exception raised inside wp_mail() by an SMTP plugin (WP Mail SMTP, FluentSMTP, a provider mailer), or a \Error from Dompdf on PHP 8, escaped and crashed the request. WordPress's own wp_mail() only catches \PHPMailer\PHPMailer\Exception; any other \Throwable propagated up and produced a white-screen fatal even though the withdrawal had already been recorded.
The whole e-mail path is now exception-safe (standalone mailer + WooCommerce e-mail + the optional PDF). A send failure degrades to the existing "resend" flow instead of a fatal; the consumer always reaches their confirmation page. After updating, the underlying SMTP cause is visible in your PHP error log + the admin "e-mail failed" notice.
Update strongly recommended for any site that sends the acknowledgement through an SMTP plugin.
Also in this release
- FluentCart 1.4.2 shipped a native EU withdrawal add-on. Settings → FluentCart now warns about running two flows at once and how to coexist (set FluentCart handling to Off, or use the
wwu_wb_fluentcart_native_activefilter). WooCommerce + EDD are unaffected. - Smoke-test fix (test fixture used
order_idinstead oforder_ref; no plugin-code change).
Install
Download wwu-withdrawal-button.zip below and upload via Plugins → Add New → Upload Plugin, or update in place.