• Resolved Howdy_McGee

    (@howdy_mcgee)


    Hello,

    I ran into a situation where I was disabling both WooCommerce and Stripe. If I disable WooCommere first, then I try to disable Stripe, I get hit with a Fatal Error:

    PHP Fatal error:  Uncaught Error: Class 'WC_Stripe_Inbox_Notes' not found in \wp-content\plugins\woocommerce-gateway-stripe\woocommerce-gateway-stripe.php:724
    Stack trace:
    #0 \wp-includes\class-wp-hook.php(308): wcstripe_deactivated(false)
    #1 \wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #2 \wp-includes\plugin.php(517): WP_Hook->do_action(Array)
    #3 \wp-admin\includes\plugin.php(814): do_action('deactivate_wooc...', false)
    #4 \wp-admin\plugins.php(209): deactivate_plugins('woocommerce-gat...', false, false)
    #5 {main}
      thrown in \wp-content\plugins\woocommerce-gateway-stripe\woocommerce-gateway-stripe.php on line 724

    I think a class_exists( 'WC_Stripe_Inbox_Notes' ) needs to be added onto the wcstripe_deactivated() conditional.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @howdy_mcgee

    Make sure you’re using the latest version of the both plugins. I tried to replicate the issue in my end, but I am not getting the error on my end.

    You can take a look at this screenshot: https://screencast-o-matic.com/i/c0VqDOVw762

    Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.  Once you’ve done that, paste it here in your response.

    Thread Starter Howdy_McGee

    (@howdy_mcgee)

    It’s a very basic install on localhost. To replicate…

    1. Install and activate WooCommerce
    2. Install and activate WooCommerce Stripe Payment Gateway
    3. Disable WooCommerce
    4. Disable WooCommerce Stripe Payment Gateway

    The system runs into a Fatal Error since it’s trying to use a WC_Stripe_Inbox_Notes class which is only included whenever a new instance of WC_Stripe is created. The wcstripe_deactivated callback isn’t working with an instance of WC_Stripe and it’s not including the WC_Stripe_Inbox_Notes class file.

    Here’s my status report

    WordPress Environment
    
    WordPress address (URL): http://preview/projects/woocommerce
    Site address (URL): http://preview/projects/woocommerce
    WC Version: 7.3.0
    REST API Version: ✔</img> 7.3.0
    WC Blocks Version: ✔</img> 9.1.5
    Action Scheduler Version: ✔</img> 3.4.0
    Log Directory Writable: ✔</img>
    WP Version: 6.1.1
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: ✔</img>
    WP Cron: ✔</img>
    Language: en_US
    External object cache: –
    
    Server Environment
    
    Server Info: Apache/2.4.46 (Win64) PHP/7.3.27 mod_fcgid/2.3.10-dev
    PHP Version: 7.3.27
    PHP Post Max Size: 32 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 2500
    cURL Version: 7.70.0
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.4.10-MariaDB
    Max Upload Size: 32 MB
    Default Timezone is UTC: ✔</img>
    fsockopen/cURL: ✔</img>
    SoapClient: ✔</img>
    DOMDocument: ✔</img>
    GZip: ✔</img>
    Multibyte String: ✔</img>
    Remote Post: ✔</img>
    Remote Get: ✔</img>
    
    Database
    
    WC Database Version: 7.3.0
    WC Database Prefix: wp_
    Total Database Size: 1.85MB
    Database Data Size: 1.71MB
    Database Index Size: 0.14MB
    wp_woocommerce_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_actions: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_actionscheduler_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_comments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_options: Data: 1.56MB + Index: 0.04MB + Engine MyISAM
    wp_postmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_posts: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_rm_fields: Data: 0.08MB + Index: 0.00MB + Engine MyISAM
    wp_rm_forms: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_rm_front_users: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_login: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_rm_login_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_paypal_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_paypal_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_reports_notifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_rows: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_rules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_sent_mails: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_submission_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_tabs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_tasks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rm_task_exe_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_termmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_term_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_usermeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
    wp_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_customer_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_product_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_product_attributes_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_product_download_directories: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    
    Post Type Counts
    
    attachment: 2
    page: 10
    post: 1
    revision: 1
    wporg_custom_field: 1
    
    Security
    
    Secure connection (HTTPS): ❌</img>
    Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ✔</img>
    
    Active Plugins (2)
    
    WooCommerce Stripe Gateway: by WooCommerce – 7.0.2
    WooCommerce: by Automattic – 7.3.0
    
    Inactive Plugins (0)
    
    Settings
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    Enforce Approved Product Download Directories: ✔</img>
    Order datastore: WC_Order_Data_Store_CPT
    
    WC Pages
    
    Shop base: #11 - /shop/
    Cart: #12 - /cart/
    Checkout: #13 - /checkout/
    My account: #14 - /my-account/
    Terms and conditions: ❌</img> Page not set
    
    Theme
    
    Name: Storefront
    Version: 4.2.0
    Author URL: https://woocommerce.com/
    Child Theme: ❌</img> – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ✔</img>
    
    Templates
    
    Overrides: –
    
    Admin
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: minified-js
    new-product-management-experience
    settings
    
    Daily Cron: ✔</img> Next scheduled: 2023-01-20 21:02:53 +00:00
    Options: ✔</img>
    Notes: 50
    Onboarding: skipped
    
    Action Scheduler
    
    Complete: 15
    Oldest: 2022-12-21 15:48:31 +0000
    Newest: 2023-01-20 18:53:57 +0000
    
    Pending: 1
    Oldest: 2023-01-21 18:52:57 +0000
    Newest: 2023-01-21 18:52:57 +0000
    
    Status report information
    
    Generated at: 2023-01-20 18:54:16 +00:00
    `

    Hi,

    Technically, Stripe is a WooCommerce extension, let’s say it needs a WooCommerce environment to work.

    May I ask what was the reason to disable first WooCommerce and then WooCommerce Stripe Payment Gateway? That will help us to get a better idea about what is your goal.

    Kind regards 🙂

    Thread Starter Howdy_McGee

    (@howdy_mcgee)

    Hello,

    The goal for disabling plugins was to narrow down a plugin conflict on a client website. WooCommerce appears before WooCommerce Stripe Payment Gateway so WooCommerce was disabled first. The issue is not high priority for me, but I figured since I ran into it, I would report it.

    Hi,

    I see, to help you to deactivate plugins/extensions temporarily, you can use the Meks Quick Plugin Disabler, it can remember what plugins you currently have active, and it’s easy to switch them back on.

    I hope this helps.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi @howdy_mcgee 👋

    Thanks so much for reporting this! I was able to replicate the error on my end.

    I’ve created a bug report for this here:

    https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2542

    Have a good one!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal Error WC_Stripe_Inbox_Notes’ is closed to new replies.