• Resolved amslps

    (@amslps)


    I checked regularly some logs from WooCoomerce, some fatal errors happened, How to fix it?
    
    WordPress version 6.1.3
    Active theme: Astra Child Theme (version 1.0)
    WooCommerce (version 7.8.0)
    PHP version 8.1.19
    
    2023-06-26T06:30:06+00:00 CRITICAL Uncaught Exception: Invalid data store. in /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/data-stores/class-wc-shipping-zone-data-store.php:101
    Stack trace:
    
    0 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Shipping_Zone_Data_Store->read()
    
    1 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php(62): WC_Data_Store->read()
    
    2 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-shipping-zones.php(140): WC_Shipping_Zone->__construct()
    
    3 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(161): WC_Shipping_Zones::get_zone_matching_package()
    
    4 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(336): WC_Shipping->load_shipping_methods()
    
    5 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(260): WC_Shipping->calculate_shipping_for_package()
    
    6 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1428): WC_Shipping->calculate_shipping()
    
    7 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(339): WC_Cart->calculate_shipping()
    
    8 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(850): WC_Cart_Totals->get_shipping_from_cart()
    
    9 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(144): WC_Cart_Totals->calculate_shipping_totals()
    
    10 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(134): WC_Cart_Totals->calculate()
    
    11 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1406): WC_Cart_Totals->__construct()
    
    12 /usr/share/nginx/wordpress/wp-content/plugins/woo-stripe-payment/includes/controllers/class-wc-stripe-controller-cart.php(277): WC_Cart->calculate_totals()
    
    13 /usr/share/nginx/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1171): WC_Stripe_Controller_Cart->cart_calculation()
    
    14 /usr/share/nginx/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request()
    
    15 /usr/share/nginx/wordpress/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch()
    
    16 /usr/share/nginx/wordpress/wp-includes/rest-api.php(410): WP_REST_Server->serve_request()
    
    17 /usr/share/nginx/wordpress/wp-content/plugins/woo-stripe-payment/includes/class-wc-stripe-rest-api.php(159): rest_api_loaded()
    
    18 /usr/share/nginx/wordpress/wp-includes/class-wp-hook.php(308): WC_Stripe_Rest_API->process_frontend_request()
    
    19 /usr/share/nginx/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    20 /usr/share/nginx/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    21 /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    
    22 /usr/share/nginx/wordpress/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax()
    
    23 /usr/share/nginx/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    24 /usr/share/nginx/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    25 /usr/share/nginx/wordpress/wp-includes/template-loader.php(13): do_action()
    
    26 /usr/share/nginx/wordpress/wp-blog-header.php(19): require_once('…')
    
    27 /usr/share/nginx/wordpress/index.php(17): require('…')
    
    28 {main}
    
    thrown in /usr/share/nginx/wordpress/wp-content/plugins/woocommerce/includes/data-stores/class-wc-shipping-zone-data-store.php on line 101
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @amslps

    Update Stripe plugin to latest version.

    Thread Starter amslps

    (@amslps)

    This happened after I updated the Stripe plugin……

    Hi @amslps

    Thanks for reaching out!

    I understand that you receive the error logs above after updating Stripe to the latest version, correct?

    I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Once we have more information, we’ll be able to assist you further.

    Thread Starter amslps

    (@amslps)

    WordPress Environment
    
    WordPress address (URL): 
    Site address (URL): 
    WC Version: 7.8.1
    REST API Version: ✔ 7.8.1
    WC Blocks Version: ✔ 10.2.4
    Action Scheduler Version: ✔ 3.6.1
    Log Directory Writable: ✔
    WP Version: ❌ 6.1.3 - There is a newer version of WordPress available (6.2.2)
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: –
    Language: en_US
    External object cache: ✔
    
    Server Environment
    
    Server Info: nginx/1.24.0
    PHP Version: 8.1.19
    PHP Post Max Size: 256 MB
    PHP Time Limit: 600
    PHP Max Input Vars: 1000
    cURL Version: 7.29.0
    NSS/3.53.1
    
    SUHOSIN Installed: –
    MySQL Version: 10.10.4-MariaDB
    Max Upload Size: 256 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    Database
    
    WC Database Version: 7.8.1
    WC Database Prefix: wp_
    Total Database Size: 95.97MB
    Database Data Size: 72.39MB
    Database Index Size: 23.58MB
    wp_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.23MB + Index: 0.25MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 2.19MB + Index: 1.47MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 1.30MB + Index: 1.81MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_comments: Data: 0.08MB + Index: 0.11MB + Engine InnoDB
    wp_eascompliance_locations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_eascompliance_product_locations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_is_inverted_index: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mo2f_network_blocked_ips: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mo2f_network_email_sent_audit: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mo2f_network_transactions: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    wp_mo2f_network_whitelisted_ips: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mo2f_user_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mo2f_user_login_info: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_options: Data: 7.27MB + Index: 0.11MB + Engine InnoDB
    wp_parcelpanel_courier: Data: 0.22MB + Index: 0.00MB + Engine InnoDB
    wp_parcelpanel_location: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_parcelpanel_tracking: Data: 0.28MB + Index: 0.05MB + Engine InnoDB
    wp_parcelpanel_tracking_items: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_postmeta: Data: 10.52MB + Index: 16.25MB + Engine InnoDB
    wp_posts: Data: 44.11MB + Index: 0.88MB + Engine InnoDB
    wp_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_rank_math_analytics_gsc: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_rank_math_analytics_objects: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_rank_math_internal_links: Data: 0.19MB + Index: 0.08MB + Engine InnoDB
    wp_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_termmeta: Data: 0.05MB + Index: 0.06MB + Engine InnoDB
    wp_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    wp_term_relationships: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.11MB + Index: 0.13MB + Engine InnoDB
    wp_trackship_shipment: Data: 0.02MB + Index: 0.16MB + Engine InnoDB
    wp_trackship_shipment_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_trackship_shipping_provider: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_usermeta: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_bundle_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.05MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_attributes_lookup: Data: 0.28MB + Index: 0.17MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.22MB + Index: 0.34MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wdr_order_item_discounts: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_bundled_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_bundled_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woo_shippment_provider: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    wp_wotv_woo_track_info: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpns_attack_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpns_files_scan: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpns_ip_rate_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpns_malware_hash_file: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wpns_malware_scan_report: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpns_malware_scan_report_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpns_malware_skip_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_zcwc_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_zorem_email_sms_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    
    Post Type Counts
    
    attachment: 892
    custom_css: 1
    is_search_form: 4
    nav_menu_item: 35
    page: 25
    post: 7
    product: 74
    product_variation: 1171
    revision: 1005
    shop_coupon: 7
    shop_order: 141
    shop_order_refund: 1
    wp_global_styles: 2
    wpcode: 2
    
    Security
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    Active Plugins (22)
    
    Ivory Search: by Ivory Search – 5.5.1
    Child Theme Wizard: by Jay Versluis – 1.4
    Dynamic Pricing and Discount Rules: by ThemeHigh – 2.2.3
    EAS EU compliance: by EAS project – 1.4.53
    En Spam: by Hatul – 0.7.2
    Index WP MySQL For Speed: by Oliver Jones
    Rick James – 1.4.13
    
    miniOrange 2 Factor Authentication: by miniOrange – 5.7.1
    Parcel Panel Order Tracking for WooCommerce: by Parcel Panel – 3.1.3
    Payment Plugins for PayPal WooCommerce: by Payment Plugins
    [email protected] – 1.0.34
    
    Redis Object Cache: by Till Krüss – 2.4.1
    Rank Math SEO: by Rank Math – 1.0.118
    ZeptoMail: by Zoho Mail – 2.1.0
    Spectra: by Brainstorm Force – 2.6.9
    Proxy Cache Purge: by Mika Epstein – 5.1.3
    CTX Feed: by WebAppick – 5.4.25
    Advanced Order Export For WooCommerce: by AlgolPlus – 3.4.0
    Payment Plugins for Stripe WooCommerce: by Payment Plugins
    [email protected] – 3.3.43
    
    WooCommerce: by Automattic – 7.8.1
    WordPress Importer: by wordpressdotorg – 0.8.1
    WP Comment Fields PRO V4: by N-Media – 4.1
    Comments Extra Fields For Post,Pages and CPT: by N-Media – 4.7
    Zoho Campaigns: by Zoho Campaigns – 2.0.6
    
    Inactive Plugins (0)
    
    Dropin Plugins (1)
    
    object-cache.php: Redis Object Cache Drop-In
    
    Must Use Plugins (1)
    
    Index WP MySQL For Speed Upgrade Filter for mu-plugins.: by – 1.4.11
    
    Settings
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 1
    Taxonomies: Product Types: bundle (bundle)
    external (external)
    grouped (grouped)
    simple (simple)
    subscription (subscription)
    variable (variable)
    variable subscription (variable-subscription)
    
    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: ✔
    HPOS feature screen enabled: –
    HPOS feature enabled: –
    Order datastore: WC_Order_Data_Store_CPT
    HPOS data sync enabled: –
    
    WC Pages
    
    Shop base: #7 - /collection/
    Cart: #8 - /cart/
    Checkout: #9 - /checkout/
    My account: #10 - /my-account/
    Terms and conditions: #2279 - /terms-of-service/
    
    Theme
    
    Name: Astra Child Theme
    Version: 1.0
    Author URL: http://207.244.245.4
    Child Theme: ✔
    Parent Theme Name: Astra
    Parent Theme Version: 3.9.4 – 4.1.5 is available
    Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
    WooCommerce Support: ✔
    
    Templates
    
    Overrides: –
    
    Admin
    
    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    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: core-profiler
    minified-js
    new-product-management-experience
    product-variation-management
    settings
    async-product-editor-category-field
    
    Daily Cron: ✔ Next scheduled: 2023-07-03 10:30:26 +00:00
    Options: ✔
    Notes: 88
    Onboarding: completed
    
    Action Scheduler
    
    Complete: 2,602
    Oldest: 2023-06-01 12:57:39 +0000
    Newest: 2023-07-02 11:03:53 +0000
    
    Failed: 2,206
    Oldest: 2022-11-22 13:48:34 +0000
    Newest: 2023-07-01 18:25:35 +0000
    
    Pending: 4
    Oldest: 2023-07-02 14:00:05 +0000
    Newest: 2023-07-14 04:53:48 +0000
    
    Status report information
    
    Generated at: 2023-07-02 12:44:40 +00:00
    `

    Hi @amslps

    Thanks for sharing the requested information above.

    Payment Plugins for Stripe WooCommerce: by Payment Plugins
    [email protected] – 3.3.43

    Checking on your site’s System Status Report above, I can see that you are referring to the third-party plugin: Payment Plugins for Stripe WooCommerce here that we don’t provide support for based on our Support Policy.

    It looks like a third-party plugin or your theme might be causing the conflict here.

    For us to investigate this further, can you please try to switch to the default Storefront theme and only WooCommerce plugin is enabled and see if this works?

    If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.

    If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.

    Let us know how it goes!

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

The topic ‘fatal error’ is closed to new replies.