Hi,
I’m having a critical issue with WooCommerce order emails not sending to customers, and it appears to be directly caused by the EventON Tickets plugin.
Here are the details:
When WooCommerce tries to send an order email (both “Processing Order” and “Completed Order”), the email fails silently and nothing is delivered to the customer.
The error logs show repeated fatal errors coming from EventON Tickets when emails are triggered.
Error message from WooCommerce fatal logs:
Critical Uncaught Error: Call to a member function get_meta() on bool
in /wp-content/plugins/eventon-tickets/includes/class-functions.php:55
additionnal context:
Additional context
{
"error": {
"type": 1,
"file": "/home/customer/www/rachelb155.sg-host.com/public_html/wp-content/plugins/eventon-tickets/includes/class-functions.php",
"line": 55
},
"remote-logging": true,
"backtrace": [
"",
"#0 /home/customer/www/rachelb155.sg-host.com/public_html/wp-content/plugins/eventon-tickets/includes/class-integration-woocommerce.php(1052): evotx_functions->does_order_have_tickets(false)",
"#1 /home/customer/www/rachelb155.sg-host.com/public_html/wp-includes/class-wp-hook.php(326): EVOTX_WC->autocomplete_orders('completed', 12345)",
"#2 /home/customer/www/rachelb155.sg-host.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('completed', Array)",
"#3 /home/customer/www/rachelb155.sg-host.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(352): apply_filters('woocommerce_pay...', 'completed', 12345, Object(WC_Order))",
"#4 /home/customer/www/rachelb155.sg-host.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(321): WC_Order->maybe_set_date_paid()",
"#5 /home/customer/www/rachelb155.sg-host.com/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/EmailPreview/EmailPreview.php(442): WC_Order->set_status('processing')",
"#6 /home/customer/www/rachelb155.sg-host.com/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/EmailPreview/EmailPreview.php(394): AutomatticWooCommerceInternalAdminEmailPreviewEmailPreview->apply_dummy_order_status(Object(WC_Order))",
"#7 /home/customer/www/rachelb155.sg-host.com/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/EmailPreview/EmailPreview.php(216): AutomatticWooCommerceInternalAdminEmailPreviewEmailPreview->get_dummy_order()",
"#8 /home/customer/www/rachelb155.sg-host.com/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/EmailPreview/EmailPreviewRestController.php(242): AutomatticWooCommerceInternalAdminEmailPreviewEmailPreview->set_email_type('WC_Email_Custom...')",
"#9 /home/customer/www/rachelb155.sg-host.com/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/EmailPreview/EmailPreviewRestController.php(144): AutomatticWooCommerceInternalAdminEmailPreviewEmailPreviewRestController->validate_email_type('WC_Email_Custom...')",
"#10 /home/customer/www/rachelb155.sg-host.com/public_html/wp-includes/rest-api/class-wp-rest-request.php(930): AutomatticWooCommerceInternalAdminEmailPreviewEmailPreviewRestController->AutomatticWooCommerceInternalAdminEmailPreview{closure}('WC_Email_Custom...', Object(WP_REST_Request), 'type')",
"#11 /home/customer/www/rachelb155.sg-host.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1114): WP_REST_Request->has_valid_params()",
"#12 /home/customer/www/rachelb155.sg-host.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request))",
"#13 /home/customer/www/rachelb155.sg-host.com/public_html/wp-includes/rest-api.php(459): WP_REST_Server->serve_request('/wc-admin-email...')",
"#14 /home/customer/www/rachelb155.sg-host.com/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP))",
"#15 /home/customer/www/rachelb155.sg-host.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)",
"#16 /home/customer/www/rachelb155.sg-host.com/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)",
"#17 /home/customer/www/rachelb155.sg-host.com/public_html/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)",
"#18 /home/customer/www/rachelb155.sg-host.com/public_html/wp-includes/class-wp.php(818): WP->parse_request('')",
"#19 /home/customer/www/rachelb155.sg-host.com/public_html/wp-includes/functions.php(1342): WP->main('')",
"#20 /home/customer/www/rachelb155.sg-host.com/public_html/wp-blog-header.php(16): wp()",
"#21 /home/customer/www/rachelb155.sg-host.com/public_html/index.php(17): require('/home/customer/...')",
"#22 {main}",
"thrown"
]
}
This happens even with a real WooCommerce order (not only with the “Send a test email” button).
Because of this fatal error, the WooCommerce order email never gets sent.
What I have already confirmed:
- Email delivery works fine on my site (I receive other WordPress emails).
- WooCommerce transactional emails are enabled.
-The issue only happens when EventON Tickets is active.
- Disabling the EventON Tickets plugin allows WooCommerce to send order emails normally.
This indicates that EventON Tickets is hooking into WooCommerce emails and calling $order->get_meta() even when $order is not a valid WC_Order object.
Environment:
WordPress (latest)
WooCommerce (HPOS enabled)
EventON (latest)
EventON Tickets (latest)
Please advise on how to fix this, or provide a patched file,
Thank you.
Hello,
Thank you for your messages!
I am going to escalate this ticket to development to help in here. Please allow us some time to address this, and we truly appreciate your patience. Thank you for being a valued EventON customer!
Additionally, if your site has any IP blocking or security restrictions in place, kindly disable them temporarily to facilitate our support process.
Good day my friend!
Thank you very much for reporting this issue to us and giving us chance to fix this for everyone thats effected!
I was able to go into your site and apply the necessary changes to code that will stop this error from hapenning. — We will be including this code change in the next version update to tickets addon.
If you have any other issues do let us know.
Hi, thank you. I still don’t receive the emails from WordPress to confirm the ticekts?
Thanks