Title: Fatal Error when activating
Last modified: July 1, 2020

---

# Fatal Error when activating

 *  Resolved [samgwd](https://wordpress.org/support/users/samgwd/)
 * (@samgwd)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-63/)
 * When I try to activate the plugin I get this error:
 * Plugin could not be activated because it triggered a fatal error.
    Fatal error:
   Cannot declare class Stripe\Stripe, because the name is already in use in /srv/
   htdocs/wp-content/plugins/woo-stripe-payment/stripe-php-6.40.0/lib/Stripe.php
   on line 10

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-63/#post-13059841)
 * Hi [@samgwd](https://wordpress.org/support/users/samgwd/),
 * Duplicate class name errors could be triggered if you have another Stripe plugin
   active that is using the same library or you already have the same plugin installed
   but have renamed the directory.
 * Please check if you have another Stripe plugin active that’s causing a conflict.
 * Kind regards,
 *  Thread Starter [samgwd](https://wordpress.org/support/users/samgwd/)
 * (@samgwd)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-63/#post-13059858)
 * Hi,
    Thanks for getting back to me. I dont currently have any other stripe plugins
   active.
 * Thanks
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-63/#post-13059880)
 * Hi [@samgwd](https://wordpress.org/support/users/samgwd/)
 * If we analyze the error message closely there are some revealing things.
 * 1. Error states you cannot redeclare Stripe\Stripe because it exists in woo-stripe-
   payment.
    2. woo-stripe-payment is the directory name of Stripe for Woocommerce
   which means you already have it installed on your site. 3. I believe you’re trying
   to re-install the plugin when it already exists.
 * If you like please send me login credentials to your site via the support email
   and I will show you what I’m referring to.
 * Kind regards,
 *  Thread Starter [samgwd](https://wordpress.org/support/users/samgwd/)
 * (@samgwd)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-63/#post-13063761)
 * Hi ive emailed you
 * Thanks,
    Sam
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-63/#post-13065242)
 * Marking as closed. Merchant is using another plugin that also loads Stripe classes
   but that plugin does not check for class existence before loading.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fatal Error when activating’ is closed to new replies.

 * ![](https://ps.w.org/woo-stripe-payment/assets/icon-256x256.png?rev=2611337)
 * [Payment Plugins for Stripe WooCommerce](https://wordpress.org/plugins/woo-stripe-payment/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-stripe-payment/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-stripe-payment/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-stripe-payment/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-stripe-payment/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-stripe-payment/reviews/)

## Tags

 * [activating plugin](https://wordpress.org/support/topic-tag/activating-plugin/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 5 replies
 * 2 participants
 * Last reply from: [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-63/#post-13065242)
 * Status: resolved