By Marco on Wednesday, 09 March 2022
Posted in General Issues
Likes 0
Views 478
Votes 0
Actually I am trying to setup PayPlans on my page. During testing the payment method "Stripe" I came across the following error:


Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array


After some research I were able to locate the error in the following file:

/plugins/payplans/stripe/app/scaLib/Stripe/ApiRequestor.php:402


Thanks to some google results I came across the following bug description which sounded similiar: https://github.com/impress-org/givewp/issues/5873https://github.com/impress-org/givewp/issues/5873

I tried switching my webspace to PHP 7.4 and Boom everything was working fine. When I switch back to PHP 8.0 (which I would prefer) it again leads to the error.

This error only appears when you switch on SCA and have PHP 8.0 active.

I really would like to use PHP 8.0 and above. Is there a workaround for this or can you fix this error?
Hey Marco,

We already addressed this issue internally and fixed it internally also. We will release this fix in the coming release.
For now to fix this issue , find attached file and replace with the below mentioned file path.
/plugins/payplans/stripe/app/scaLib/Stripe/ApiRequestor.php

Please take a look at this issue again after replacing the file and see how it goes.

Update us if still any issue persists.
·
Thursday, 10 March 2022 10:54
·
0 Likes
·
0 Votes
·
0 Comments
·
It worked like a charm.

Thank you alot!
·
Thursday, 10 March 2022 15:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Marco,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusion in the future. Please start a new thread if you have any other issues in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Thursday, 10 March 2022 15:42
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post