Support » Plugin: EVA - Email Validator » Is causing a fatal error with WooCommerce plugin active

  • Resolved Luke Cavanagh

    (@lukefiretoss)


    Active plugins (3)
    Classic Editor by WordPress Contributors – 1.5
    EVA – Email Validator by SquareBit – 1.0
    WooCommerce by Automattic – 3.6.4

    Theme
    Name: Storefront
    Version: 2.5.0
    Author URL: https://woocommerce.com/

    With debug enabled
    Fatal error: Uncaught WC_Data_Exception: Invalid billing email address in /home/s762/html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:794 Stack trace: #0 /home/s762/html/wp-content/plugins/woocommerce/includes/class-wc-customer.php(971): WC_Data->error(‘customer_invali…’, ‘Invalid billing…’) #1 /home/s762/html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php(113): WC_Customer->set_billing_email(‘lcavanagh@liqui…’) #2 /home/s762/html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Data_Store_Session->read(Object(WC_Customer)) #3 /home/s762/html/wp-content/plugins/woocommerce/includes/class-wc-customer.php(116): WC_Data_Store->read(Object(WC_Customer)) #4 /home/s762/html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(727): WC_Customer->__construct(1664, true) #5 /home/s762/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(2267): WooCommerce->initialize_cart() #6 /home/s762/html/wp-co in /home/s762/html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php on line 794
    The site is experiencing technical difficulties.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Squarebit

    (@squarebit)

    @lukefiretoss, we are already looking and trying to solve the issue. Thanks for your collaboration and apologies for any inconvenience

    @squarebit
    I forgot to mention that the version of WordPress used was 5.2.1.

    Plugin Author Squarebit

    (@squarebit)

    Hi @lukefiretoss!

    After investigation it seems this is caused by wooCommerce (WC) itself and is outside our control.

    To explain:

    The function ‘set_billing_email‘ can sometimes throw an exception if the email is not valid (for whatever reason, even not related to EVA).

    The problem seems to be in the ‘read‘ function of the ‘class-wc-customer-data-store-session.php‘ file where WC is not using a try/catch where it should to catch such exceptions.
    Strangely enough, it uses a try/catch block in the ‘set_defaults‘ function right after….so this is likely a bug of WC.

    To overcome this WC issue we recommend:

    1. Activate ONLY the “Validate User Registration form” in EVA config, for now.
    2. Extract all the user emails from your WP database and validate them using the “Bulk Validation” feature at e-va.io
    3. Decide what to do with the invalid emails/accounts: disable/remove/…
    4. Now that you know that all the emails in your platform are valid, you can activate the “Validate all forms” option in EVA config.

    Hope that we have been some help. – and if so, kindly mark as “resolved” 🙂

    Feel free to directly contact us for any issues, questions and/or suggestions.

    • This reply was modified 5 months, 1 week ago by  Squarebit.
    • This reply was modified 5 months, 1 week ago by  Squarebit.
    • This reply was modified 5 months, 1 week ago by  Squarebit.

    @squarebit
    Thank for for tracking that down.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.