Cannot use object of type stdClass as array class-wc-stripe-webhook-handler.php
-
We are getting this error in v9.1.1 on PHP8.1:
PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-webhook-handler.php:1319
Stack trace:
0 /wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-webhook-handler.php(967): WC_Stripe_Webhook_Handler->get_order_from_intent(Object(stdClass))
1 /wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-webhook-handler.php(1266): WC_Stripe_Webhook_Handler->process_payment_intent(Object(stdClass))
2 /wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-webhook-handler.php(107): WC_Stripe_Webhook_Handler->process_webhook(‘{\n “id”: “evt_…’)
3 /wp-includes/class-wp-hook.php(324): WC_Stripe_Webhook_Handler->check_for_webhook(”)
4 /path/to/…” while reading response header from upstream, client: [REDACTED_IP], server: [REDACTED_DOMAIN], request: “POST /?wc-api=wc_stripe HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php8.1-fpm.sock:”, host: “[REDACTED_DOMAIN]:[PORT]”
- You must be logged in to reply to this topic.