WordPress.org

Ready to get started?Download WordPress

Forums

Paid Memberships Pro
Fatal Error (12 posts)

  1. glpstylist
    Member
    Posted 1 year ago #

    Also, when I try to test things out I get this message:

    Fatal error: Cannot redeclare class Stripe in /home/content/68/9327668/html/wp-content/plugins/paid-memberships-pro/includes/lib/Stripe/Stripe/Stripe.php on line 4

    http://wordpress.org/extend/plugins/paid-memberships-pro/

  2. strangerstudios
    Member
    Plugin Author

    Posted 1 year ago #

    What other plugin are you using that uses Stripe?

    It will need code like this wrapped around the Stripe include/declaration:

    if(!class_exists("Stripe")) { ... }

  3. glpstylist
    Member
    Posted 1 year ago #

    I also have Jigoshop for the store but that is using a different Stripe account. I have 2 separate strip accounts so i know which department the money is coming in from, sales or subscriptions.

    Where does the code above go? what is the declaration?

  4. glpstylist
    Member
    Posted 1 year ago #

    I tried it again and I keep getting this message: Please complete all required fields.

    Even though all fields ARE filled in properly the system is not recognizing it. I did it 4 times and each time it says the same thing.

  5. strangerstudios
    Member
    Plugin Author

    Posted 1 year ago #

    I've updated PMPro. The next version will have the proper check to avoid conflicts. I'm also submitting a patch request to Jigoshop RE their Stripe gateway plugin.

    Here are the edits you will have to make:
    * Change line 3 of paid-memberships-pro/classes/gateways/class.pmprogateway_stripe.php to:

    if(!class_exists("Stripe"))
    	require_once(dirname(__FILE__) . "/../../includes/lib/Stripe/Stripe.php");

    * Change line 34 of jigoshop-gateway-stripe/stripe.php to:

    if(!class_exists("Stripe"))
    	require_once("lib/Stripe.php");

    RE the requirements issue. I would need more information and/or access to the site. Please sign up for support at http://www.paidmembershipspro.com/pricing/ and contact me by email.

  6. glpstylist
    Member
    Posted 1 year ago #

    Thank you. I will make these changes now. When will the updated files be available on wordpress?

  7. glpstylist
    Member
    Posted 1 year ago #

    oh and do the blank lines count as a line?

  8. glpstylist
    Member
    Posted 1 year ago #

    I made the changes you suggested and as soon as I pulled up the site I got this error

    Parse error: syntax error, unexpected T_PUBLIC in /home/content/45/9493245/html/wp-content/plugins/jigoshop-gateway-stripe/stripe.php on line 82

  9. glpstylist
    Member
    Posted 1 year ago #

    ok, I fixed the issue above but it has not fixed the website. changing those lines did not do anything :-(

  10. strangerstudios
    Member
    Plugin Author

    Posted 1 year ago #

    Blank lines will count.

    Are you still getting this error?

    Fatal error: Cannot redeclare class Stripe in /home/content/68/9327668/html/wp-content/plugins/paid-memberships-pro/includes/lib/Stripe/Stripe/Stripe.php on line 4

    The code changes above really should fix that one.

  11. strangerstudios
    Member
    Plugin Author

    Posted 1 year ago #

    It's possible that you have yet another plugin that is loading the Stripe library. You'll need to make a similar change to that plugin.

  12. glpstylist
    Member
    Posted 1 year ago #

    thanks, yes that error message is fixed. The main issue is that Stripe won't accept the payment. Once I add all the credit card information and confirm, the system shoots back this message: Please complete all required fields.

    But all the fields HAVE been filled. I tried it 4 times, and I keep getting the same message. For some reason it is not connecting the payment.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic