• Resolved bavamca

    (@bavamca)


    it trows below error on first time

    Fatal error: Uncaught Error: Call to a member function get_allowed_countries() on null in /wp-content/plugins/woocommerce/includes/wc-core-functions.php:1353 Stack trace: #0 /wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php(129): wc_get_customer_default_location() #1 /wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php(118): WC_Customer_Data_Store_Session->set_defaults(Object(WC_Customer)) #2 /wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Data_Store_Session->read(Object(WC_Customer)) #3 /wp-content/plugins/woocommerce/includes/class-wc-customer.php(125): WC_Data_Store->read(Object(WC_Customer)) #4 /wp-content/plugins/woocommerce/includes/class-woocommerce. in /wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1353

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @bavamca

    Thanks for reaching out!

    I understand that you are receiving the error message above after updating the plugin.

    I’d like to understand your site properly, can you please share your System Status Report, that will help us further troubleshoot.

    You can find it via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    Thread Starter bavamca

    (@bavamca)

    HI @xue28

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://mywebsite.com  - IF you really need website name i'll send you 
    Site address (URL): https://mywebsite.com
    WC Version: 7.0.0
    REST API Version: ? 7.0.0
    WC Blocks Version: ? 8.5.1
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.0.3
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.0.25
    PHP Post Max Size: 256 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 3000
    cURL Version: 7.66.0
    OpenSSL/1.1.1q-fips
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.39-42-log
    Max Upload Size: 256 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 7.0.0
    WC Database Prefix: wp_
    Total Database Size: 17.41MB
    Database Data Size: 14.49MB
    Database Index Size: 2.92MB
    wp_woocommerce_sessions: Data: 0.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.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.05MB + Index: 0.03MB + 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: 0.11MB + Index: 0.11MB + 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: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB
    wp_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_glsr_assigned_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_glsr_assigned_terms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_glsr_assigned_users: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_glsr_ratings: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mystickymenu_contact_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_options: Data: 4.48MB + Index: 0.13MB + Engine InnoDB
    wp_postmeta: Data: 1.52MB + Index: 0.44MB + Engine InnoDB
    wp_posts: Data: 4.52MB + Index: 0.25MB + Engine InnoDB
    wp_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_sliders: Data: 0.16MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_slides: Data: 1.52MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + 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_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + 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.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + 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_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_indexable: Data: 0.31MB + Index: 0.16MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    alus_brand: 6
    alus_footer: 10
    attachment: 352
    custom_css: 2
    customize_changeset: 72
    mc4wp-form: 1
    nav_menu_item: 29
    page: 78
    post: 15
    postman_sent_mail: 10
    product: 6
    revision: 430
    shop_coupon: 1
    shop_order: 15
    site-review: 1
    testimonial: 3
    wp_global_styles: 1
    wpautoterms_page: 1
    wpcf7_contact_form: 4
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (18) ###
    
    Template Library and Redux Framework: by Extendify – 4.3.19
    Alura Studio: by Alura Studio – 1.1.8
    BackupBuddy: by iThemes – 8.7.4.0
    Contact Form 7: by Takayuki Miyoshi – 5.6.4
    Google Listings and Ads: by WooCommerce – 2.2.0
    Health Check & Troubleshooting: by The www.remarpro.com community – 1.5.0
    WPBakery Page Builder: by Michael M - WPBakery.com – 6.6.0
    myStickymenu: by Premio – 2.6.1
    Slider Revolution: by ThemePunch – 6.4.11
    Simple Custom CSS: by John Regan – 4.0.6
    SiteGround Migrator: by SiteGround – 2.0.2
    WooCommerce Stripe Gateway: by WooCommerce – 6.9.0
    WooCommerce Multiple Currencies: by Lagudi Domenico – 5.5
    WooCommerce PayPal Payments: by WooCommerce – 1.9.4
    WooCommerce: by Automattic – 7.0.0
    WP Mail SMTP: by WPForms – 3.6.1
    WP Rollback: by GiveWP.com – 1.7.2
    WP Super Cache: by Automattic – 1.9
    
    ### Inactive Plugins (12) ###
    
    Better Font Awesome: by Mickey Kay – 2.0.3
    CMB2: by CMB2 team – 2.10.1
    Duplicate Page: by mndpsingh287 – 4.4.9
    MC4WP: Mailchimp for WordPress: by ibericode – 4.8.10
    Otter – Page Builder Blocks & Extensions for Gutenberg: by ThemeIsle – 2.1.0
    Preview E-mails for WooCommerce: by Digamber Pradhan – 2.1.1
    Umbala Importer: by Alura Studio – 1.1.5
    WPForms Lite: by WPForms – 1.7.7.2
    WP Mail SMTP: by WPForms – 3.6.1
    YITH WooCommerce Compare: by YITH – 2.19.0
    YITH WooCommerce Wishlist: by YITH – 3.14.0
    Yoast SEO: by Team Yoast – 19.8
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Must Use Plugins (1) ###
    
    Health Check Troubleshooting Mode: by  – 1.8.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: SGD ($)
    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: –
    
    ### WC Pages ###
    
    Shop base: #565 - /shop-2/
    Cart: #609 - /shopping-cart/
    Checkout: #2102 - /checkout/
    My account: #607 - /my-account/
    Terms and conditions: #4804 - /terms-condition/
    
    ### Theme ###
    
    Name: Umbala Child
    Version: 1.0.0
    Author URL: https://alura-studio.com
    Child Theme: ?
    Parent Theme Name: Umbala
    Parent Theme Version: 1.8.0
    Parent Theme Author URL: https://themeforest.net/user/alurastudio
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: umbala/woocommerce/archive-product.php
    umbala/woocommerce/cart/cart.php
    umbala/woocommerce/checkout/form-checkout.php
    umbala/woocommerce/content-product-cat.php
    umbala/woocommerce/content-product.php
    umbala/woocommerce/content-single-product.php
    umbala/woocommerce/content-widget-product.php
    umbala/woocommerce/global/quantity-input.php
    umbala/woocommerce/loop/add-to-cart.php
    umbala/woocommerce/loop/loop-end.php
    umbala/woocommerce/loop/loop-start.php
    umbala/woocommerce/loop/no-products-found.php
    umbala/woocommerce/loop/orderby.php
    umbala/woocommerce/loop/pagination.php
    umbala/woocommerce/myaccount/navigation.php
    umbala/woocommerce/single-product/add-to-cart/grouped.php
    umbala/woocommerce/single-product/add-to-cart/variable.php
    umbala/woocommerce/single-product/product-image.php
    umbala/woocommerce/single-product/product-thumbnails.php
    umbala/woocommerce/single-product/rating.php
    umbala/woocommerce/single-product/related.php
    umbala/woocommerce/single-product/tabs/tabs.php
    umbala/woocommerce/single-product.php
    
    ### WooCommerce PayPal Payments ###
    
    Onboarded: ?
    Shop country code: SG
    WooCommerce currency supported: ?
    PayPal card processing available in country: –
    Pay Later messaging available in country: –
    Webhook status: ?
    Vault enabled: ?
    Logging enabled: ?
    Reference Transactions: –
    Used PayPal Checkout plugin: –
    Tracking enabled: ?
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    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: ? Next scheduled: 2022-11-01 18:11:25 +00:00
    Options: ?
    Notes: 55
    Onboarding: skipped
    
    ### Action Scheduler ###
    
    Complete: 224
    Oldest: 2022-10-12 04:17:59 +0000
    Newest: 2022-11-01 06:27:21 +0000
    
    Pending: 5
    Oldest: 2022-11-02 05:18:27 +0000
    Newest: 2022-11-08 05:18:27 +0000
    
    ### Status report information ###
    
    Generated at: 2022-11-01 15:06:43 +00:00
    
    Thread Starter bavamca

    (@bavamca)

    when we visit first time this error shown

    if any one check on site first time this error shown

    https://ibb.co/hCSXfgq

    after refresh the error will gone i have no clue

    kindly let me know what i need to to

    Thread Starter bavamca

    (@bavamca)

    @xue28
    any update pls

    Hello,

    Please navigate to WP Dashboard > plugins > locate WooCommerce and update it to the latest versions.

    Also, please go to WooCommerce > status > tools > update database.

    After updating, does the issue persist? Please let us know how that goes.

    Hi,

    I’m having the same problem and I’ve tried the recommendations provided by @ihereira but I’m still getting the fatal error as follows:

    [01-Dec-2022 10:27:23 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_allowed_countries() on null in /home/pollo/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php:1353
    Stack trace:
    #0 /home/pollo/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php(129): wc_get_customer_default_location()
    #1 /home/pollo/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php(118): WC_Customer_Data_Store_Session->set_defaults(Object(WC_Customer))
    #2 /home/pollo/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Data_Store_Session->read(Object(WC_Customer))
    #3 /home/pollo/public_html/wp-content/plugins/woocommerce/includes/class-wc-customer.php(125): WC_Data_Store->read(Object(WC_Customer))
    #4 /home/pollo/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(840): WC_Customer->__construct(0, true)
    #5 /home/pollo/public_html/wp-content/plug in /home/pollo/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1353

    On stack trace #5 I see something weird, not sure if that has anything to do with it… the path looks broken with a space and seems incomplete:

    “/public_html/wp-content/plug (space) in (space) /home/etc…”

    Please help… this is a live eCommerce store and I’m losing customers.

    Saif

    (@babylon1999)

    Hello @wikidcool,

    I understand you have the same problem but we need to handle each request individually in forums.

    Please open your own thread and make sure to include as much information as you can.

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘after woocommerce update it throws error while first time loading the site’ is closed to new replies.