You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to make a payment, a call to /admin-ajax.php is made, returning a 5XX status.
Looking at PHP Logs reveals the following error:
PHP Fatal error: Uncaught TypeError: array_key_exists():
Argument #2 ($array) must be of type array, EE_Stripe_6_35_1\Util\CaseInsensitiveArray given
in /.../eea-stripe-gateway/includes/stripe-php-6.35.1/lib/ApiRequestor.php:402
The fix was applied to the Stripe add-on as the issue was not in core and it looks like Version 1.1.11.p included that fix and was released on February 2, 2022. Going to confirm with others just to be sure.
Describe the bug
Dear EE team,
Let me apologize in advance for posting this issue in event-espresso-core, but the repositiory for eea-stripe-gateway doesn't seem to exist.
I could not find the correct repository for this addon: https://eventespresso.com/product/eea-stripe-gateway/
Thus, a bug report in core:
When trying to make a payment, a call to /admin-ajax.php is made, returning a 5XX status.
Looking at PHP Logs reveals the following error:
This seems to use an outdated version of this library: https://github.com/stripe/stripe-php
I'm assuming this only became a problem with PHP 8, since array_key_exists stopped also accepting objects for the array parameter.
Even so, this leaves me in a bit of disbelief: Is no one else using EE with Stripe Gateway and PHP 8? Is the Stripe Gateway deprecated?
Thanks in adance!
Cheers,
Chris
To Reproduce
Setup Wordpress on a Server using PHP 8, install the current core and add-on, try to purchase an event ticket.
Expected behavior
Ajax call returns something successful and payment goes through.
Screenshots
N/A
Environment:
Additional context
Full stack trace:
The text was updated successfully, but these errors were encountered: