Posted: September 6, 2021 at 3:01 am
Hi! Our Stripe payment plugin stoped working about two months ago. Bookings couldn’t be made and there were errors when watching transaction pages (made by Stripe). When inactivating Stripe payments it started to work again. But then I can no longer accept card payments. Now when trying to activate Stripe payments on “Event Espresso – Payment Methods” I just get a blank page. The Log is empty but I guess it doesn’t log this things. Site: skeppsholmsgarden.se Please contact me if you need login details. Thanks, |
|
Versions used |
|
Hi Jakob, Which version of PHP are you currently using? Looking at your site, it looks like you have a development copy of the payment methods pro add-on enabled. If you temporarily deactivate that add-on and then activate Stripe, does it work then? |
|
Hi Tony! PHP version: 5.6.40-0+deb8u8 I have tried to deactivate the plugin and activate it again. I have also tried to remove the plugin and upload it again. No difference. Thanks, |
|
Which plugin are you referring to here? Stripe or Payment Methods Pro? Have you tried activating the Stripe payment method with the Payment Methods Pro add-on deactivated? Right now you have an old development version or the Payment Methods Pro add-on installed on your site (1.0.0.dev.003) which is known to cause issues on later version of EE. I highly recommend you switch over to the release version which is available to download from your account page. |
|
Hi! Now I have updated the plugins. I have the following payment plugins installed: I have tried with all types of the plugins activated/inactivated. If only Payment Methods Pro is activated. Stripe settings under Payment Methods isn’t shown. If both payments methods pro and stripe is activated. Settings are now shown under Payment Methods. But when going to checkout on user site (https://skeppsholmsgarden.se/kassa/?uts=1631176816#checkout) an error is shown: |
|
I think it would be a good idea to explain what the Payment Methods Pro add-on does here as it’s expected that if you don’t have the Stripe payment method add-on enabled, it wont show. Payment Methods Pro basically allows you to create multiple ‘instances’ of a payment method and/or then select specific payment methods to show on specific events. If you don’t have a payment method add-on enabled, that payment method can’t then be managed by Payment Methods Pro. So you need to test this with Payment methods pro disabled and the Stripe payment method enabled.
Ok, so that will likely be a PHP Fatal Error and should have created a log entry in your PHP error logs. Can you check the logs from around the time you saw the above and see if there are any errors from Event Espresso? Or, add this snippet to your sites wp-config.php file: https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug That snippet replaces the single Let me know when that is in place and I can run a test registration to see if I can log the error. |
|
Thanks for clarification. Payment Methods Pro is disabled and stripe enabled.
This is the error from the log regarding EE: I have disabled Stripe Payment now, otherwise no bookings could be made from users. |
|
Ok, so the problem is due to the version of PHP being used on the server. The Stripe payment method uses the null coalescing operator: https://www.tutorialspoint.com/php7/php7_coalescing_operator.htm That operator was introduced in PHP7 and as you, as using PHP5 it’s throwing a fatal error when parsing as your version doesn’t understand that code. PHP5.X is now end of life and has been for almost 3 years, by staying on PHP5.X you are basically just waiting for an exploit to be found and on your site as it is no longer maintained. So the best solution here is to have your host update PHP and PHP7.4 is the lowest version currently under active support: |
|
Thanks for the answer! Will check with host how to update PHP. Jakob |
|
Just a quick note, whilst PHP8 is the latest I don’t recommend switching over to it just yet (7.4.xx is what I would recommend right now). PHP8 has changes that will likely require changes to some of your plugins (Event Espresso 4 itself isn’t fully compatible with PHP8 yet) so if they aren’t PHP8 ready they’ll start throwing fatal errors on the site. Update to PHP7 and then use a development copy of the site and test PHP8 on that specific site so you can work through any PHP8 compatibility issues there. |
|
The support post ‘Stripe payments doesn't work’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.