• Resolved Muhammad Faizan Haidar

    (@muhammadfaizanhaidar)


    Stripe integration should get deactivated instead of just showing Woocommerce dependency message if WooCommerce is not installed/activated.
    How to regenerate issue.
    Deactivate WooCommerce then try to deactivate stripe integration it will throw a fatal error.
    Find the fatal error below.
    Fatal error: Uncaught Error: Class ‘WC_Stripe_Inbox_Notes’ not found in C:\Users\DELL\Local Sites\pd1\app\public\wp-content\plugins\woocommerce-gateway-stripe\woocommerce-gateway-stripe.php on line?724

    So while deactivating its not able to locate WC_Stripe_Inbox_Notes class.
    If auto deactivating the stripe integration ,if WooCommerce is not activated is the solution please let me know I can add a patch .
    Thanks!.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @muhammadfaizanhaidar – I hear you on this one. Ideally extensions should be deactivated before WooCommerce Core but there are scenarios where the core plugin gets deactivated beforehand.

    This is a known and recorded bug here: Disabling WooCommerce Core and then Stripe causes a Critical Error.

    Changing plugin behaviour based on another may go against WordPress guidelines but we’re open to ideas to fix this. Thanks!

    Thread Starter Muhammad Faizan Haidar

    (@muhammadfaizanhaidar)

    Hey @dougaitken thanks for your response.

    You are saying that if WooCommerce stripe integration gets its self deactivated if WooCommerce not found this may go against WP guidelines?

    Hi,

    You are saying that if WooCommerce stripe integration gets its self deactivated if WooCommerce not found this may go against WP guidelines?

    On the sentence above, I understand it differently.

    Please note, depending on the case Stripe can be used without WooCommerce, of course, we recommend the contrary, i.e. using Stripe having a WooCommerce store installed/activated. If you use Stripe without WooCommerce, it means you will not be able to utilize all of these features. You may be missing an important part of the plugin features that might help your store to receive payments securely, please keep that in mind.

    May I know what is the reason to deactivate WooCommerce and then Stripe in that order? You can provide us more details, and we’ll be glad to point you in the right direction.

    Kind regards.

    Hi,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Best.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin throws a fatal error while deactivating if WooCommerce is not installed.’ is closed to new replies.