• Resolved zz409

    (@zz409)


    Message
    
    PHP Fatal error: Uncaught Error: Call to undefined function wc_add_notice() in /wordpress/plugins/woocommerce-gateway-stripe/7.8.1/includes/class-wc-gateway-stripe.php:158 Stack trace: #0 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(324): WC_Gateway_Stripe->show_update_card_notice(206757307, 'billing') #1 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #2 /wordpress/core/6.4.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /wordpress/plugins/woocommerce-accelerated-frequency/8.5.0.30/includes/admin/class-wc-admin-profile.php(243): do_action('woocommerce_cus...', 206757307, 'billing') #4 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(324): WC_Admin_Profile->save_customer_meta_fields(206757307) #5 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #6 /wordpress/core/6.4.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /wordpress/core/6.4.2/wp-admin/user-edit.php(157): do_action('edit_user_profi...', 206757307) #8 {main} thrown in /wordpress/plugins/woocommerce-gateway-stripe/7.8.1/includes/class-wc-gateway-stripe.php on line 158
    
    Timestamp
    
    2024-01-03T17:23:50.000Z
    
    Kind
    
    plugins
    
    Name
    
    woocommerce-gateway-stripe
    
    File
    
    /wordpress/plugins/woocommerce-gateway-stripe/7.8.1/includes/class-wc-gateway-stripe.php
    
    Line
    
    158

    Happens when I am changing from user from a Customer role to a Subscriber

Viewing 1 replies (of 1 total)
  • Hi there @zz409 ??

    Thanks for reaching out about this!

    PHP error when updating customer

    I tried reproducing this, on a test site of mine, without seeing the same error.

    As the log points to this line in the file, which is about adding a notice for the customer, when they update their billing address, I’d recommend trying to isolate the issue on your installation, as a next step.

    Feel free to follow the steps detailed here, for doing so.

    I trust that points you in the right direction, but if you have more questions, let us know.

    We’re happy to help.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP error when updating customer’ is closed to new replies.