Hello!
I am seeing this error when I try to bulk cancel two orders in WooCommerce:
Fatal error : Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in /usr/www/users/totpal/wp-content/plugins/bricksforge/includes/email-designer/EmailDesigner.php:110 Stack trace: #0 /usr/www/users/totpal/wp-content/plugins/bricksforge/includes/email-designer/EmailDesigner.php(110): array_filter() #1 /usr/www/users/totpal/wp-includes/class-wp-hook.php(324): Bricksforge\EmailDesigner->finish() #2 /usr/www/users/totpal/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /usr/www/users/totpal/wp-includes/pluggable.php(192): apply_filters() #4 /usr/www/users/totpal/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(741): wp_mail() #5 /usr/www/users/totpal/wp-content/plugins/woocommerce/includes/emails/class-wc-email-cancelled-order.php(93): WC_Email->send() #6 /usr/www/users/totpal/wp-includes/class-wp-hook.php(324): WC_Email_Cancelled_Order->trigger() #7 /usr/www/users/totpal/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 /usr/www/users/totpal/wp-includes/plugin.php(565): WP_Hook->do_action() #9 /usr/www/users/totpal/wp-content/plugins/woocommerce/includes/class-wc-emails.php(172): do_action_ref_array() #10 /usr/www/users/totpal/wp-includes/class-wp-hook.php(324): WC_Emails::send_transactional_email() #11 /usr/www/users/totpal/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #12 /usr/www/users/totpal/wp-includes/plugin.php(517): WP_Hook->do_action() #13 /usr/www/users/totpal/wp-content/plugins/woocommerce/includes/class-wc-order.php(420): do_action() #14 /usr/www/users/totpal/wp-content/plugins/woocommerce/includes/class-wc-order.php(253): WC_Order->status_transition() #15 /usr/www/users/totpal/wp-content/plugins/woocommerce/includes/class-wc-order.php(365): WC_Order->save() #16 /usr/www/users/totpal/wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php(477): WC_Order->update_status() #17 /usr/www/users/totpal/wp-includes/class-wp-hook.php(324): WC_Admin_List_Table_Orders->handle_bulk_actions() #18 /usr/www/users/totpal/wp-includes/plugin.php(205): WP_Hook->apply_filters() #19 /usr/www/users/totpal/wp-admin/edit.php(222): apply_filters() #20 {main} thrown in /usr/www/users/totpal/wp-content/plugins/bricksforge/includes/email-designer/EmailDesigner.php on line 110
When making a purchase, on the checkout page, I also get an error that says:
“There was an error processing your order. Please check your payment method for charges and review your order history before ordering again.”
It’s impossible to finish any purchase!
I am using the latest Bricksforge version: 2.2.4
Deactivating Bricksforge solves both issues!