• Resolved juiceycow

    (@juiceycow)


    Hi,
    It looks like WP Simple Pay is conflicting with another plugin that I use.

    Fatal error: Cannot declare class Stripe\Stripe, because the name is already in use in C:\xampp\htdocs\www\wp-content\plugins\ebook-store-stripe\stripe-php-master\lib\Stripe.php on line 10

    Im guessing that the other plug in loading the library into PHP first? Anything I can edit to prevent the conflict?

    I’ve tried on php 5.6 and 7 and tested with free and pro versions…

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter juiceycow

    (@juiceycow)

    I got a reply from the author of the other plugin:

    Actually, that looks like something that is completely on their end, their plugin should check if the class is defined hence it seems to start after mine.

    I did apply a patch that would work if mine was the one starting second though:

    But I am sure it won’t help in your case. The other guys will need to help. It’s really easy fix.

    Thread Starter juiceycow

    (@juiceycow)

    After some testing, looks like the patch they applied has solved the issue.
    Carry on ??

    Plugin Contributor Phil Derksen

    (@pderksen)

    @juiceycow Yes, we check for if the Stripe API PHP library is included with other plugins before loading it as well. Thanks for following up!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP declaration error (name already in use)’ is closed to new replies.