Stripe WebHook >> Cannot declare class Stripe\Stripe name already in use

We are getting a Stripe webhook failure:
Fatal error : Cannot declare class Stripe\Stripe, because the name is already in use in /home//public_html/wp-content/plugins/s2member-pro/src/includes/classes/gateways/stripe/stripe-sdk/lib/Stripe.php* on line 11

Webhook is:
https://www.OURSITE.org/?s2member_pro_stripe_notify=1

All plugins are up to date and our WordPress is at v5.3.
We are using Event Espresso.
Please advise.

Possibly related?

looks similar, but there’s no resolution on this other thread…just asking for logs/js conflicts/errors

Hi Sol.

Could you try this file? https://s2member.com/?s2member_file_download=ccaps%2Faccess-s2member-ccap-pro%2Fstripe-utilities.zip

Let me know if the error goes away for you, please.

Another thing to try, though, is a plugin manager that will let you activate or deactivate plugins depending on the page. That way you could have both plugins without conflicting, because both would not be active on the same page.

I look forward to your update. :slight_smile:

via usual plugin install of your zip file:
The package could not be installed. No valid plugins were found.
Plugin installation failed.

Are you wanting me to extract + FTP up?

Yes, that’s not a full release, it’s an edited copy of only one file: s2member-pro/src/includes/classes/gateways/stripe/stripe-utilities.inc.php

Sorry I wasn’t clear enough in my previous post.

:slight_smile:

Hi!
Thank you…no worries.
I replaced the single file and there are no errors…just a blank white screen when I go to:
https://www.OURSITEURL.org/?s2member_pro_stripe_notify=1

…before, I’d get the ‘Cannot declare…’ error.
Anything else I should try to test?

Great! Thanks for the update. :slight_smile:

A blank page is normal. In your browser’s Network Monitor (Ctrl+Shift+E in Firefox), do you get a Status 200 when you load that URL?

Yes, 200 status via Chrome >> Inspect Element >> Network.

1 Like

@clavaque, thanks for that updated stripe-utilities file. Will this be included in the next update?

1 Like

:slight_smile: