Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in stripe pro form for S2Member #295

Closed
jerinsweans opened this issue Aug 11, 2014 · 5 comments
Closed

Bug in stripe pro form for S2Member #295

jerinsweans opened this issue Aug 11, 2014 · 5 comments
Assignees

Comments

@jerinsweans
Copy link

On submitting the sign-up form after adding the billing method, shows an error - "Fatal error: Cannot redeclare class Stripe in /home/guntrade/public_html/wp-content/plugins/s2member-pro/includes/classes/gateways/stripe/stripe-sdk/lib/Stripe/Stripe.php on line 4".

@jaswrks jaswrks added this to the Next Release milestone Aug 11, 2014
@jaswrks
Copy link
Contributor

jaswrks commented Aug 11, 2014

Thanks for the bug report!
Can I see the shortcode that you used for the Pro Form in this case please?
It should look something like... [s2Member-Pro-Stripe-Form ... /]

@jaswrks jaswrks self-assigned this Aug 11, 2014
@jerinsweans
Copy link
Author

[s2Member-Pro-Stripe-Form level="2" ccaps="" desc="$0.50 USD / Monthly
(recurring charge, for ongoing access)" cc="USD" custom="test.test.org"
ta="0" tp="0" tt="D" ra="0.50" rp="1" rt="M" rr="1" coupon=""
accept_coupons="0" default_country_code="US" captcha="0" /]

On 11-08-2014 2:20 PM, JasWSInc wrote:

Thanks for the bug report!
Can I see the shortcode that you used for the Pro Form in this case
please?

It should look something like... |[s2Member-Pro-Stripe-Form ... /]|


Reply to this email directly or view it on GitHub
#295 (comment).

@jaswrks
Copy link
Contributor

jaswrks commented Aug 12, 2014

Just made a few attempts to reproduce this without success so far.

@jerinsweans Is it possible that you are running another plugin that integrates with the Stripe API also? If you could list the other WordPress plugins that you have running together with s2Member that might be helpful. Thanks!

In either case, I think we can add a check to help prevent the Stripe library from loading again in a case where it is being shared across other plugins.

jaswrks pushed a commit to wpsharks/s2member-pro that referenced this issue Aug 12, 2014
jaswrks pushed a commit to wpsharks/s2member-pro that referenced this issue Aug 12, 2014
class_exists('Stripe'). Compatibility. See: wpsharks/s2member#295
jaswrks pushed a commit that referenced this issue Aug 12, 2014
class_exists('Stripe'). Compatibility. See: #295
@jaswrks jaswrks closed this as completed Aug 12, 2014
jaswrks pushed a commit that referenced this issue Aug 12, 2014
@jerinsweans
Copy link
Author

The plugin with which S2Member made conflict is "Striper (Gateway using Stripe.js)". I uninstalled it and the issue was fixed.

@jaswrks
Copy link
Contributor

jaswrks commented Aug 12, 2014

Great, thank you. That confirms what I suspected. The next release of s2Member will do it's very best to resolve this conflict. We're hoping for a release later this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants