Support

Home Forums Event Espresso Premium Stripe payments doesn't work

Stripe payments doesn't work

Posted: September 6, 2021 at 3:01 am


Jakob Naredi

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,
Jakob


Jakob Naredi

September 6, 2021 at 3:03 am

Versions used
Event Espresso: Version 4.10.13.p
Event Espresso – Stripe Gateway (EE 4.6.0+): Version 1.1.10.p
Wordpress: 5.8


Tony

  • Support Staff

September 7, 2021 at 8:35 am

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?


Jakob Naredi

September 8, 2021 at 1:42 am

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,
Jakob


Tony

  • Support Staff

September 8, 2021 at 3:54 am

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.

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.


Jakob Naredi

September 9, 2021 at 2:58 am

Hi!

Now I have updated the plugins. I have the following payment plugins installed:
Event Espresso – Stripe Gateway (EE 4.6.0+) Version 1.1.10.p
Event Espresso – Payment Methods Pro (EE 4.9.32+) Version 1.0.1.p
Event Espresso – Flexible Payment Method (EE 4.6+) Version 1.0.0.p

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:
https://prnt.sc/1rlkzg3


Tony

  • Support Staff

September 9, 2021 at 9:03 am

If only Payment Methods Pro is activated. Stripe settings under Payment Methods isn’t 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.

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:
https://prnt.sc/1rlkzg3

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 define( 'WP_DEBUG', false ); you should already have in that file.

Let me know when that is in place and I can run a test registration to see if I can log the error.


Jakob Naredi

September 13, 2021 at 2:28 am

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.

Thanks for clarification. Payment Methods Pro is disabled and stripe enabled.

Can you check the logs from around the time you saw the above and see if there are any errors from Event Espresso?

This is the error from the log regarding EE:
[13-Sep-2021 08:13:51 UTC] PHP Parse error: syntax error, unexpected ‘?’ in /var/www/skeppsholmsgarden.se/wordpress/wp-content/plugins/eea-stripe-gateway/forms/ElementsBillingForm.php on line 69

I have disabled Stripe Payment now, otherwise no bookings could be made from users.


Tony

  • Support Staff

September 13, 2021 at 5:41 am

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:

https://www.php.net/supported-versions.php


Jakob Naredi

September 14, 2021 at 1:54 am

Thanks for the answer!

Will check with host how to update PHP.

Jakob


Tony

  • Support Staff

September 14, 2021 at 3:18 am

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.

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso