Title: PHP declaration error (name already in use)
Last modified: February 11, 2018

---

# PHP declaration error (name already in use)

 *  Resolved [juiceycow](https://wordpress.org/support/users/juiceycow/)
 * (@juiceycow)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-declaration-error-name-already-in-use/)
 * 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](https://wordpress.org/support/users/juiceycow/)
 * (@juiceycow)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-declaration-error-name-already-in-use/#post-9965856)
 * 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](https://wordpress.org/support/users/juiceycow/)
 * (@juiceycow)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-declaration-error-name-already-in-use/#post-9966106)
 * After some testing, looks like the patch they applied has solved the issue.
    
   Carry on 🙂
 *  [Phil Derksen](https://wordpress.org/support/users/pderksen/)
 * (@pderksen)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-declaration-error-name-already-in-use/#post-9971139)
 * [@juiceycow](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/stripe/assets/icon-256x256.png?rev=2784844)
 * [Stripe Payment Forms by WP Simple Pay - Accept Credit Card Payments + Subscriptions with Stripe](https://wordpress.org/plugins/stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stripe/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Phil Derksen](https://wordpress.org/support/users/pderksen/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/php-declaration-error-name-already-in-use/#post-9971139)
 * Status: resolved