PHP error when using stripe #631
Replies: 2 comments 1 reply
-
This is because another plugin (or even the theme) also includes (a version of) the stripe library. EME only includes its included version of the stripe library when needed, where the other plugin seems to include their version of the library in/on all pages. Now, a possible fix (untested), could be to replace in the file eme-payments.php the line
Now the problem is that then I don't have control over the version being used ... |
Beta Was this translation helpful? Give feedback.
-
Well, that didn't fix it, but not because there was a problem with the code, but because the client had the API keys in backwards. Go figure. Thanks @liedekef |
Beta Was this translation helpful? Give feedback.
-
When attempting to save stripe info in settings the site gives a generic Wordpress error, yet the data saves. On the front end, the user can get all the way to the payment page and when they click pay with stripe, the site gives the generic error.
Upon searching the logs, I see the following:
[Tue Aug 13 12:22:51.309680 2024] [proxy_fcgi:error] [pid 172621:tid 172621] [client 162.158.174.171:33756] AH01071: Got error 'PHP message: PHP Fatal error: Cannot declare class Stripe\\Util\\ApiVersion, because the name is already in use in /public_html/wp-content/plugins/events-made-easy/payment_gateways/stripe/lib/Util/ApiVersion.php on line 7', referer: https://domain.com/events/p/13b65855ad97ca23a1d916e0a6f0fb0feda7dea48cfbb8/
and
[Tue Aug 13 12:22:30.077070 2024] [proxy_fcgi:error] [pid 173486:tid 173486] [client 162.158.174.171:30458] AH01071: Got error 'PHP message: PHP Warning: Trying to access array offset on null in /public_html/wp-content/plugins/events-made-easy/eme-functions.php on line 1211; PHP message: PHP Warning: Trying to access array offset on null in /public_html/wp-content/plugins/events-made-easy/eme-functions.php on line 1035; PHP message: PHP Warning: Trying to access array offset on null in /public_html/wp-content/plugins/events-made-easy/eme-payments.php on line 379; PHP message: PHP Warning: Trying to access array offset on null in /public_html/wp-content/plugins/events-made-easy/eme-payments.php on line 3466; PHP message: PHP Warning: Trying to access array offset on null in /public_html/wp-content/plugins/events-made-easy/eme-payments.php on line 3470', referer: https://domain.com/events/p/e8fdcf52d4b0de7e298567a6faae2e246330638ed72663/
Generic error is:
Running PHP 8.3 and WP Latest
Any ideas @liedekef ?
Beta Was this translation helpful? Give feedback.
All reactions