• Resolved samgwd

    (@samgwd)


    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 Payment Plugins

    (@mrclayton)

    Hi @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

    (@samgwd)

    Hi,
    Thanks for getting back to me. I dont currently have any other stripe plugins active.

    Thanks

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @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

    (@samgwd)

    Hi ive emailed you

    Thanks,
    Sam

    Plugin Author Payment Plugins

    (@mrclayton)

    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.