Issue with Customer Email Verification Plugin During Checkout
-
Clean WordPress 6.7.2 installation
WooCommerce 9.7.0
Theme: Twenty Twenty-Five
Block-Based Checkout: Enabled
WooCommerce Settings → Accounts & Privacy → “Customers can create an account before placing their order”: EnabledIssue Description
I am experiencing issues with the Customer Email Verification for WooCommerce plugin when a new user creates an account during checkout. The behavior varies based on the selected filter:
Steps to Reproduce:
- Visit the store as an anonymous user.
- Add products to the cart and proceed to the checkout page.
- Enter an email and check “Create an account with …”.
- Complete order details and place the order .
Observed Behavior
Scenario 1: “authenticate” or “wp_authenticate_user” Filter Selected as “Authenticate filter”
? User account is created.
? Order is created.
? No errors are displayed on the checkout page.
? Checkout page does not advance to the confirmation page.
?? Cart is emptied.
?? No errors in debug.log but errors in developer consoleScenario 2: “send_auth_cookies” Filter Selected as “Authenticate filter”
? User account is created.
? Order is not created.
? Checkout page displays the error: “There has been a critical error on this website.”
? Checkout page does not advance to the confirmation page.
?? Cart is not emptied.
?? Error Log (when “send_auth_cookies” is selected)27-Feb-2025 21:06:40 UTC] PHP Fatal error: Uncaught Error: Call to a member function get() on null in /var/www/vhosts/*******************/httpdocs/staging/wp-content/plugins/woocommerce/includes/wc-notice-functions.php:62
Stack trace:
#0 /var/www/vhosts/*******************/httpdocs/staging/wp-content/plugins/emails-verification-for-woocommerce/includes/alg-wc-ev-functions.php(47): wc_has_notice()
#1 /var/www/vhosts/*******************/httpdocs/staging/wp-content/plugins/emails-verification-for-woocommerce/includes/class-alg-wc-ev-core.php(362): alg_wc_ev_add_notice()
#2 /var/www/vhosts/*******************/httpdocs/staging/wp-includes/class-wp-hook.php(324): Alg_WC_Email_Verification_Core->display_error_activation_message()
#3 /var/www/vhosts/*******************/httpdocs/staging/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /var/www/vhosts/*******************/httpdocs/staging/wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /var/www/vhosts/*******************/httpdocs/staging/wp-settings.php(704): do_action()
#6 /var/www/vhosts/*******************/httpdocs/staging/wp-config.php(106): require_once('...')
#7 /var/www/vhosts/*******************/httpdocs/staging/wp-load.php(50): require_once('...')
#8 /var/www/vhosts/*******************/httpdocs/staging/wp-blog-header.php(13): require_once('...')
#9 /var/www/vhosts/*******************/httpdocs/staging/index.php(17): require('...')
#10 {main}
thrown in /var/www/vhosts/*******************/httpdocs/staging/wp-content/plugins/woocommerce/includes/wc-notice-functions.php on line 62Any insights or suggestions would be greatly appreciated. Thank you!
Note: The issue only happens when the plugin is activated. When deactivated, checkout works as expected.
- You must be logged in to reply to this topic.