• Resolved mookie4a4

    (@mookie4a4)


    CRITICAL Uncaught TypeError: Argument 2 passed to WC_Stripe_API::detach_payment_method_from_customer() must be of the type string, null given, called in /wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327 Stack trace: #0 /wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer() #1 /wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(132): WC_Stripe_Customer->delete_source() #2 /wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent() #3 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #4 /wp-includes/plugin.ph in /wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php on line 327

Viewing 3 replies - 1 through 3 (of 3 total)
  • anastas10s

    (@anastas10s)

    Hi there @mookie4a4 ??

    Thank you for reaching out about this.

    PHP Fatal Error

    Could you provide further details on the circumstances at play when this appeared, please?

    Furthermore, to get an idea of how your site is configured, could you please share a copy of your site’s System Status? You can find it via ‘WooCommerce > Status’. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.

    Looking forward to hearing from you!

    Thread Starter mookie4a4

    (@mookie4a4)

    Hey, it looks like it was caused due to a customer trying to save card details. I had the option ‘Enable payments via saved cards’ enabled on this site. I run a few other sites with this turned off and never had the error before. I noticed also the webhook didn’t have the secret key setup. I’ve fixed that and upgraded the accounts API version via Stripe.

    Plugin Support Shameem a11n

    (@shameemreza)

    Hi @mookie4a4

    I’m glad you were able to find a solution to your inquiry here and thanks for sharing it with the community too! ??

    You’ve done a great job troubleshooting the issue. Disabling the “Enable payments via saved cards” option and setting up the webhook’s secret key are good steps towards resolving this problem. Upgrading the account’s API version via Stripe should also help prevent similar issues in the future.

    I will be marking this thread as resolved. Should you have further inquiries, kindly create a new topic here.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal Error’ is closed to new replies.