Events Made Easy Forums Generic Fatal error: Cannot redeclare class Stripe…

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #58207
    Anonymous
    Inactive

    Hi,

    Starting at least 3 days ago (maybe longer), people who tried to pay for the event after registering with my EME form get the following message:

    Fatal error: Cannot redeclare class Stripe\Stripe in /home/content/84/11226984/html/wp-content/plugins/events-made-easy/payment_gateways/stripe/stripe-php-5.5.0/lib/Stripe.php on line 11

    I have confirmed with my hosting provider and with Stripe that both are secure (I have an SSL on the site) and that they are TLS 1.2 compliant (I am afraid it has something to do with that as it has just happened).

    Is this a fix that needs to happen or is there something I can do to remedy the problem?

    Thanks so much!

    #58208
    Franky
    Keymaster

    That just means another plugin is also loading the stripe class, so check your WP plugins for that (or look in the other plugin files for a file called Stripe.php or similar).

    #58209
    Anonymous
    Inactive

    Hi, thanks so much for the reply. I do have WP Simple Pay (Lite Version) installed because I have to accept payments on something else (which doesn’t require EME). Is there a way to have both active?

    #58210
    Franky
    Keymaster

    The problem is that I only load the class when needed, and it seems WP Simple Pay loads it all the time (which is a bad thing). Or maybe they’re loaded because you use it in the header/footer or so … the thing is that class only needs to get loaded after you indicated a stripe payment is to be done, so it seems the WP Simple Pay plugin needs to do some tweaking here. I could check for the class existence before loading it, but then I wouldn’t be sure of the stripe version as well …

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Generic’ is closed to new topics and replies.
Scroll to Top