Support

Home Forums Event Espresso Premium Fatal error with stripe payment gateway!

Fatal error with stripe payment gateway!

Posted: February 6, 2024 at 7:50 am


BusinessDen

February 6, 2024 at 7:50 am

This morning I woke up to our site being fully down. It turned out to be the Stripe Payment Gateway v1.1.12.p … it was throwing a fatal error:

[06-Feb-2024 14:44:42 UTC] PHP Fatal error: Uncaught Error: Class “EE_PMT_Base” not found in /dom45333/wp-content/plugins/eea-stripe-gateway/payment_methods/Stripe_Onsite/EE_PMT_Stripe_Onsite.pm.php:17
Stack trace:
#0 /dom45333/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Autoloader.helper.php(73): require_once()
#1 /wordpress-versions/6.4.3/wp-includes/plugin.php(122): EEH_Autoloader::espresso_autoloader(‘EE_PMT_Stripe_O…’)
#2 /wordpress-versions/6.4.3/wp-includes/plugin.php(442): add_filter(‘wp_ajax_eea_str…’, Array, 10, 1)
#3 /dom45333/wp-content/plugins/eea-stripe-gateway/EE_Stripe_Gateway.class.php(76): add_action(‘wp_ajax_eea_str…’, Array)
#4 /wordpress-versions/6.4.3/wp-includes/class-wp-hook.php(324): EE_Stripe_Gateway->after_registration(”)
#5 /wordpress-versions/6.4.3/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#6 /wordpress-versions/6.4.3/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /dom45333/wp-content/plugins/event-espresso-core-reg/core/services/addon/AddonManager.php(95): do_action(‘AHEE__EE_System…’)
#8 /dom45333/wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php(405): EventEspresso\core\services\addon\AddonManager->loadAddons()
#9 /wordpress-versions/6.4.3/wp-includes/class-wp-hook.php(324): EE_System->load_espresso_addons(”)
#10 /wordpress-versions/6.4.3/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#11 /wordpress-versions/6.4.3/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#12 /dom45333/wp-content/plugins/event-espresso-core-reg/core/EE_Bootstrap.core.php(23): do_action(‘AHEE__EE_Bootst…’)
#13 /wordpress-versions/6.4.3/wp-includes/class-wp-hook.php(324): EE_Bootstrap::load_espresso_addons(”)
#14 /wordpress-versions/6.4.3/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#15 /wordpress-versions/6.4.3/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#16 /wordpress-versions/6.4.3/wp-settings.php(506): do_action(‘plugins_loaded’)
#17 /dom45333/wp-config.php(54): require_once(‘/wordpress-vers…’)
#18 /dom45333/wp-load.php(50): require_once(‘/dom45333/wp-co…’)
#19 /wordpress-versions/6.4.3/wp-blog-header.php(13): require_once(‘/dom45333/wp-lo…’)
#20 /wordpress-versions/6.4.3/index.php(17): require(‘/wordpress-vers…’)
#21 {main}
thrown in /dom45333/wp-content/plugins/eea-stripe-gateway/payment_methods/Stripe_Onsite/EE_PMT_Stripe_Onsite.pm.php on line 17

The only solution to get my site back up and live was to delete the eea-stripe-gateway plugin, which effectively kills my ability to sell event tickets.

Please help me get this back online as we have active event registrations happening right now!


Tony

  • Support Staff

February 6, 2024 at 9:11 am

Hi there,

Is Stripe the only payment method you have active within EE?

For the site to be working in the evening and then throwing a fatal in the morning after, something must have changed between those times.

I assume no updates have been run on the site?

Serer maintenance? Has your host updated the version of PHP in use for example?

The specific error you are getting is saying there is a classing missing, at that point in the code execution EE will have already loaded the files needed.

I’m wondering if you are getting the same error with any other payment methods you have active (if any) as they all use the EE_PMT_Base class.


Tony

  • Support Staff

February 6, 2024 at 9:22 am

I can see you’re using EE 5.0.16.p

What version of WP and PHP are you running, please?

I’ll double-check using the same versions on a test site


BusinessDen

February 6, 2024 at 9:41 am

WP: 6.3.3
PHP: 8.1


BusinessDen

February 6, 2024 at 9:45 am

EE Plugins, I have the following:
Event Espresso – 5.0.16.p
EE – Barcode Scanner – 1.0.12.p
EE – Calendar – 3.2.16.p
EE – MailChimp – 2.5.0.p
EE – Promotions – 1.0.16.p
EE – Ticketing – 1.0.11.p
EE – Wait Lists – 1.0.4.p

I also had
Stripe Payment Gateway – 1.1.12.p installed, but had to disable it in order to stop the fatal error.


BusinessDen

February 6, 2024 at 2:00 pm

Just checking to see if we have any updates. I have tried downgrading all of the plujgins using a backup from yesterday. I have tried a whole suite of troubleshooting on my staging site. I have tried walking through all of my settings, I am still unable to enable the stripe payment gateway without receiving fatal errors. I appreciate your quick response, we are trying to launch another event tomorrow…


Garth

  • Support Staff

February 6, 2024 at 2:57 pm

Hi there,

Here is a website I set up to test your configuration. This is running PHP 8.1, WP 6.3.3, and the latest Event Espresso files. https://teest.dev/wp633/events/testing-stripe-php-8-1-and-wp-6-3-3/

You can see that the website is up and Stripe is active by selecting a ticket and going to the payment page.

I have tried downgrading all of the plujgins using a backup from yesterday.

Can you try downloading the Stripe plugin from your account page and then re-installing?


BusinessDen

February 6, 2024 at 3:02 pm

I did indeed try that. Still no success. Still fatal error.

I have enabled square payments temporarily, which is now working but still not ideal.

What logs or information can I provide you to help troubleshoot this problem? Or perhaps I can send you credential access to our staging site?


Garth

  • Support Staff

February 6, 2024 at 3:03 pm

Is this same issue happening on your staging site?


BusinessDen

February 6, 2024 at 3:07 pm

Yes, it is…

Fatal error: Uncaught Error: Class “EE_PMT_Base” not found in /dom34076/wp-content/plugins/eea-stripe-gateway/payment_methods/Stripe_Onsite/EE_PMT_Stripe_Onsite.pm.php:17 Stack trace: #0 /dom34076/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Autoloader.helper.php(73): require_once() #1 /wordpress-versions/6.3.3/wp-includes/plugin.php(122): EEH_Autoloader::espresso_autoloader(‘EE_PMT_Stripe_O…’) #2 /wordpress-versions/6.3.3/wp-includes/plugin.php(442): add_filter(‘wp_ajax_eea_str…’, Array, 10, 1) #3 /dom34076/wp-content/plugins/eea-stripe-gateway/EE_Stripe_Gateway.class.php(76): add_action(‘wp_ajax_eea_str…’, Array) #4 /wordpress-versions/6.3.3/wp-includes/class-wp-hook.php(310): EE_Stripe_Gateway->after_registration(”) #5 /wordpress-versions/6.3.3/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #6 /wordpress-versions/6.3.3/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /dom34076/wp-content/plugins/event-espresso-core-reg/core/services/addon/AddonManager.php(95): do_action(‘AHEE__EE_System…’) #8 /dom34076/wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php(405): EventEspresso\core\services\addon\AddonManager->loadAddons() #9 /wordpress-versions/6.3.3/wp-includes/class-wp-hook.php(310): EE_System->load_espresso_addons(”) #10 /wordpress-versions/6.3.3/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #11 /wordpress-versions/6.3.3/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12 /dom34076/wp-content/plugins/event-espresso-core-reg/core/EE_Bootstrap.core.php(23): do_action(‘AHEE__EE_Bootst…’) #13 /wordpress-versions/6.3.3/wp-includes/class-wp-hook.php(310): EE_Bootstrap::load_espresso_addons(”) #14 /wordpress-versions/6.3.3/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #15 /wordpress-versions/6.3.3/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #16 /wordpress-versions/6.3.3/wp-settings.php(495): do_action(‘plugins_loaded’) #17 /dom34076/wp-config.php(54): require_once(‘/wordpress-vers…’) #18 /dom34076/wp-load.php(50): require_once(‘/dom34076/wp-co…’) #19 /wordpress-versions/6.3.3/wp-admin/admin.php(34): require_once(‘/dom34076/wp-lo…’) #20 /wordpress-versions/6.3.3/wp-admin/plugins.php(10): require_once(‘/wordpress-vers…’) #21 {main} thrown in /dom34076/wp-content/plugins/eea-stripe-gateway/payment_methods/Stripe_Onsite/EE_PMT_Stripe_Onsite.pm.php on line 17


BusinessDen

February 6, 2024 at 3:11 pm

My guess is that it is something related to the core plugin update, but I have no evidence for this, other than your plugin auto-updated and our entire site went down…


Garth

  • Support Staff

February 6, 2024 at 3:31 pm

We do not support auto updates right now, so we didn’t update anything.

What’s bonkers is that all the payment methods in Event Espresso use EE_PMT_Base so if Square is working then it’s available…

One thing I do see that may be a problem is caching. It looks Pagely is your host, and we’re familiar with them. They like to cache a lot of things. PHP object caching can cause file classes to not be found, such is your case. Do you have the ability to clear the caches with pagely? https://support.pagely.com/hc/en-us/articles/200236950-How-Do-I-Purge-All-the-Cached-Pages-Assets-for-My-Site

If that doesn’t work, it might be worth asking them to take a look too.


BusinessDen

February 14, 2024 at 3:43 pm

Still no resolution here. I was able to confirm that our host ran the auto update. clearing the cache does not resolve the issue. I have temporarily migrated to square payments, which is working, but we greatly prefer stripe. you can see the error live in our staging environment here:

https://staging.businessden.com/

I would be happy to generate credentials for that site and disable the plugin temporarily so you can log in and poke around.


Rio

  • Support Staff

February 15, 2024 at 4:32 pm

yes, please fill this form.

https://eventespresso.com/send-login-details/

thanks

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

Event Espresso