Stripe endpoint fatal error
This started happening in mid-February, so may be related to a plugin update, or possible upgrading the forms to the non-deprecated version, but the Stripe endpoint gets a critical error on my site.
The Stripe payment works, but it does not get feedback of completion from Stripe because the endpoint is a critical error.
I tested, and it’s not a plugin conflict.
Site is running on PHP 8.2, and current version of Wordpress.
It’s in StripeObject.php on line 279
Endpoint location":
https://sfgardenclub.org/?give-listener=stripe
$removed = new Util\Set(\array_diff(\array_keys($this->_values), \array_keys($values)));
This is the error message.
[05-Mar-2025 04:33:59 UTC] PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /home/customer/www/sfgardenclub.org/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/StripeObject.php:279
Stack trace:
#0 /home/customer/www/sfgardenclub.org/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/StripeObject.php(279): array_keys(NULL)
#1 /home/customer/www/sfgardenclub.org/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/StripeObject.php(251): Stripe\StripeObject->refreshFrom(NULL, NULL)
#2 /home/customer/www/sfgardenclub.org/public_html/wp-content/plugins/give/includes/gateways/stripe/includes/class-give-stripe-webhooks.php(80): Stripe\StripeObject::constructFrom(NULL)
#3 /home/customer/www/sfgardenclub.org/public_html/wp-includes/class-wp-hook.php(324): Give_Stripe_Webhooks->listen('')
#4 /home/customer/www/sfgardenclub.org/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#5 /home/customer/www/sfgardenclub.org/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /home/customer/www/sfgardenclub.org/public_html/wp-settings.php(704): do_action('init')
#7 /home/customer/www/sfgardenclub.org/public_html/wp-config.php(100): require_once('/home/customer/...')
#8 /home/customer/www/sfgardenclub.org/public_html/wp-load.php(50): require_once('/home/customer/...')
#9 /home/customer/www/sfgardenclub.org/public_html/wp-blog-header.php(13): require_once('/home/customer/...')
#10 /home/customer/www/sfgardenclub.org/public_html/index.php(17): require('/home/customer/...')
#11 {main}
thrown in /home/customer/www/sfgardenclub.org/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/StripeObject.php on line 279
Post Information
Subscribe to post
Get notified by email when there are changes.
Upvoters
Post Details