• Resolved sacfc

    (@sacfc)


    Checking our logs we are seeing the below fatal error after upgrading to latest release:

    [11-Nov-2022 09:40:25 UTC] PHP Fatal error:  Uncaught Error: Call to a member function date() on null in /home/fanzone/public_html/wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php:738
    Stack trace:
    #0 /home/fanzone/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Schedulers/CustomersScheduler.php(199): Automattic\WooCommerce\Admin\API\Reports\Customers\DataStore::update_registered_customer(142)
    #1 [internal function]: Automattic\WooCommerce\Internal\Admin\Schedulers\CustomersScheduler::import(142)
    #2 /home/fanzone/public_html/wp-content/plugins/woocommerce/src/Admin/Schedulers/SchedulerTraits.php(267): call_user_func_array(Array, Array)
    #3 /home/fanzone/public_html/wp-includes/class-wp-hook.php(308): Automattic\WooCommerce\Internal\Admin\Schedulers\ImportScheduler::do_action_or_reschedule(142)
    #4 /home/fanzone/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #5 /home/fanzone/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #6 /home/fanzone/public_html/wp-content/p in /home/fanzone/public_html/wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php on line 738
Viewing 15 replies - 16 through 30 (of 30 total)
  • In an attempt to get this fixed as quickly as possible I have now created a GitHub issue for this Github Issue #35752
    This is my first time creating an issue on github so hopefully I have done it all correctly.

    Thank you for opening a GitHub issue about this, @jtowell. I could reproduce it, when following the steps outlined. Bug spotted!

    cc @qlstudio

    Interesting enough I can’t reproduce the error now. I could not get rid of Fatal error for several days and now its gone! It could have been settings on the server of who knows!
    Thanks to everyone that tried to help me.

    I’m glad the issue can’t be reproduced anymore, @yorksett.

    Cheers everyone!

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hey everyone! ??

    I am marking this thread as resolved since the issue has already been reported and will be resolved on GitHub.

    If you have any other questions about WooCommerce, please feel free to open a new topic!

    Cheers!

    I am not a GitHub user so don’t know if there is a correspondence there. I notice that WooCommerce has just released a new version, but today I encounter the exact same problem again. I try to update a customer field on a WP user, and get the fatal error in WC.
    If I deactivate WC there is no problem changing the value in the custom field, and then I reactivate WC without problems. So the problem seems to persist in WC.
    Does anyone working on/with WC follow these threads???

    • This reply was modified 1 year, 9 months ago by krelle.

    I couldn’t agree more. When I raised the GitHub request over 2 months ago (https://github.com/woocommerce/woocommerce/issues/35752) I had thought that being a fatal reproducible error that it might get fixed quickly. They keep adding odd comments like “5962802-zen” on GitHub but I have no idea what this means or if it is getting any closer to being dealt with. I am unsure if working out how to do a pull request on GitHub would get this dealt with any quicker. You are correct it was not fixed in yesterday’s WooCommerce update. That’s at least 8 updates since I raised it and it is still not dealt with. I completely understand it is a big product but when they release new features but don’t fix fatal errors, I just can’t understand it.

    Could someone from Woo Support please explain the process.

    Thanks

    Janette

    @gabrielfuentes – a ticket is not resolved just because the responsibility has been moved elsewhere and as it’s very clear that the bug is not fixed and that the actual users of this plugin are not getting the information needed to understand the process or when this issue will be correctly addressed.

    Plugin Support Sol J. a11n

    (@solstudioim)

    Hi @jtowell

    They keep adding odd comments like “5962802-zen” on GitHub but I have no idea what this means or if it is getting any closer to being dealt with.?

    This means that we receive the same reports from other WooCommerce users.

    Hi @krelle

    I am not a GitHub user so don’t know if there is a correspondence there. I notice that WooCommerce has just released a new version, but today I encounter the exact same problem again. I try to update a customer field on a WP user, and get the fatal error in WC.

    That’s not good, thanks for sharing your experience with us.

    @qlstudio

    Ticket is not resolved just because the responsibility has been moved elsewhere and as it’s very clear that the bug is not fixed and that the actual users of this plugin are not getting the information needed to understand the process or when this issue will be correctly addressed.

    I can confirm that the bug hasn’t been resolved.

    You all can see here the progress: https://github.com/woocommerce/woocommerce/issues/35752

    Our developers are working on resolving this bug.

    Given that we have no extra information, I recommend that you subscribe to that thread on Github to follow the discussion. That’ll allow you to be the first to get any updates from the devs and find out when this is closed and solved. You can subscribe by clicking this button on the GitHub repo (this will only be visible if you have a GitHub account, which can be done for free):

    https://d.pr/i/2EmX9K+
    If the image does not load, please click this link: https://d.pr/i/2EmX9K

    For now, I will place this ticket on?Resolved?status as I’d suggest that you can follow the Github thread directly.

    Thanks for the patience while our developers are looking into resolving this bug.

    Hi guys, I’m not that much technical please let me know how can I fix this issue?

    WordPress Environment
    
    WordPress address (URL): https://www.dwccustomshop.com
    Site address (URL): https://www.dwccustomshop.com
    WC Version: 7.6.1
    REST API Version: ?</img> 7.6.1
    WC Blocks Version: ?</img> 9.8.5
    Action Scheduler Version: ?</img> 3.5.4
    Log Directory Writable: ?</img>
    WP Version: 6.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?</img>
    Language: en_US
    External object cache: –
    
    Server Environment
    
    Server Info: Apache
    PHP Version: 8.1.17
    PHP Post Max Size: 512 MB
    PHP Time Limit: 600
    PHP Max Input Vars: 1000
    cURL Version: 7.58.0
    OpenSSL/1.1.1
    
    SUHOSIN Installed: –
    MySQL Version: 8.0.28-0ubuntu0.20.04.3
    Max Upload Size: 512 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.6.1
    WC Database Prefix: wp_wezp38_
    Total Database Size: 67.95MB
    Database Data Size: 55.76MB
    Database Index Size: 12.19MB
    wp_wezp38_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wezp38_woocommerce_order_items: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_woocommerce_order_itemmeta: Data: 0.38MB + Index: 0.36MB + Engine InnoDB
    wp_wezp38_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wezp38_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_actionscheduler_actions: Data: 1.06MB + Index: 0.59MB + Engine InnoDB
    wp_wezp38_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_actionscheduler_logs: Data: 1.23MB + Index: 0.31MB + Engine InnoDB
    wp_wezp38_aws_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_aws_index: Data: 1.34MB + Index: 0.42MB + Engine InnoDB
    wp_wezp38_cartflows_ca_cart_abandonment: Data: 0.16MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_comments: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    wp_wezp38_defender_audit_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_defender_email_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_defender_lockout: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_defender_lockout_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_defender_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_defender_scan_item: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_e_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
    wp_wezp38_e_notes_users_relations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_e_submissions: Data: 0.02MB + Index: 0.23MB + Engine InnoDB
    wp_wezp38_e_submissions_actions_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_e_submissions_values: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_fswcwallet: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_fswcwallet_requests: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_fswcwallet_transaction: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_fswcwallet_withdrawal_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB
    wp_wezp38_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_gla_shipping_rates: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wezp38_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_ocwma_billingadress: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_options: Data: 8.31MB + Index: 0.30MB + Engine InnoDB
    wp_wezp38_pda_passwords: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_postmeta: Data: 9.52MB + Index: 5.95MB + Engine InnoDB
    wp_wezp38_posts: Data: 2.48MB + Index: 0.55MB + Engine InnoDB
    wp_wezp38_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_term_relationships: Data: 0.09MB + Index: 0.08MB + Engine InnoDB
    wp_wezp38_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_termmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_uap_action_log: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_wezp38_uap_action_log_meta: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wezp38_uap_action_logs_view: Data: 0.00MB + Index: 0.00MB + Engine
    wp_wezp38_uap_api_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_uap_api_logs_view: Data: 0.00MB + Index: 0.00MB + Engine
    wp_wezp38_uap_closure_log: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wezp38_uap_closure_log_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wezp38_uap_recipe_log: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wezp38_uap_recipe_logs_view: Data: 0.00MB + Index: 0.00MB + Engine
    wp_wezp38_uap_trigger_log: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_wezp38_uap_trigger_log_meta: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_wezp38_uap_trigger_logs_view: Data: 0.00MB + Index: 0.00MB + Engine
    wp_wezp38_usermeta: Data: 0.38MB + Index: 0.42MB + Engine InnoDB
    wp_wezp38_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wezp38_wc_admin_note_actions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_wc_admin_notes: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_wc_order_product_lookup: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
    wp_wezp38_wc_order_stats: Data: 0.09MB + Index: 0.05MB + Engine InnoDB
    wp_wezp38_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_wc_product_attributes_lookup: Data: 0.30MB + Index: 0.22MB + Engine InnoDB
    wp_wezp38_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_wc_product_meta_lookup: Data: 0.13MB + Index: 0.31MB + Engine InnoDB
    wp_wezp38_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_wccs_condition_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_wccs_conditions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wdr_order_item_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wezp38_wfconfig: Data: 0.48MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wffilemods: Data: 17.55MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wfhits: Data: 0.09MB + Index: 0.05MB + Engine InnoDB
    wp_wezp38_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wezp38_wfknownfilelist: Data: 8.52MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wflogins: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wezp38_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wezp38_wfls_role_counts: Data: 0.00MB + Index: 0.00MB + Engine MEMORY
    wp_wezp38_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wezp38_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wezp38_wfstatus: Data: 1.02MB + Index: 0.09MB + Engine InnoDB
    wp_wezp38_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wt_iew_action_history: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wt_iew_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wt_iew_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wezp38_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    Post Type Counts
    
    attachment: 424
    cartflows_flow: 1
    cartflows_step: 2
    ct_size_guide: 19
    custom_css: 7
    elementor_library: 5
    elementor-hf: 1
    nav_menu_item: 47
    page: 12
    post: 2
    product: 79
    product_variation: 934
    revision: 261
    shop_order: 514
    shop_order_refund: 9
    size-chart: 28
    uo-recipe: 1
    wcct_countdown: 1
    zpsc-size-chart: 20
    
    Security
    
    Secure connection (HTTPS): ?</img>
    Hide errors from visitors: ?</img>
    
    Active Plugins (30)
    
    FS WooCommerce Wallet: by Firas Saidi – 2.7
    Admin Theme - Musik: by Flatfull.com – 1.1.3
    Advanced Woo Search: by ILLID – 2.77
    Backuply: by Softaculous – 1.1.2
    Total Upkeep: by BoldGrid – 1.15.6
    PublishPress Capabilities: by PublishPress – 2.7.1
    Classic Editor: by WordPress Contributors – 1.6.3
    createIT Size Guide Plugin: by createIT – 3.6
    Download Plugins and Themes from Dashboard: by WPFactory – 1.8.2
    DreamHost Panel Login: by DreamHost
    danielbachhuber – 1.0.0
    
    Elementor Pro: by Elementor.com – 3.12.3
    Elementor: by Elementor.com – 3.12.2
    File Manager Advanced: by modalweb – 5.0.4
    Finale Lite - Sales Countdown Timer & Discount for WooCommerce: by XLPlugins – 2.16.0
    Flexible Checkout Fields: by WP Desk – 3.5.7
    Restricted Site Access: by 10up – 7.4.0
    Sales Countdown Timer: by VillaTheme – 1.0.11
    Multiple Shipping Addresses for WooCommerce (Address Book): by ThemeHigh – 2.2.1
    W3 Total Cache: by BoldGrid – 2.3.1
    WooCommerce Tiered Pricing: by WPMajesty – 1.0.7
    WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.24
    Show Stock Status for WooCommerce: by Bright Plugins – 1.0.4
    WooCommerce Page Builder For Elementor: by DawnThemes – 1.1.6.6.2
    WooCommerce Bulk Variations: by Barn2 Plugins – 2.2.1
    WooCommerce Dashboard Widgets Stats: by Lagudi Domenico – 5.4
    WooCommerce: by Automattic – 7.6.1
    Wordfence Security: by Wordfence – 7.9.2
    WP Admin UI Customize: by gqevu6bsiz – 1.5.13
    WP Mail SMTP: by WP Mail SMTP – 3.8.0
    WPForms Lite: by WPForms – 1.8.1.2
    
    Inactive Plugins (0)
    
    Dropin Plugins (2)
    
    advanced-cache.php: advanced-cache.php
    db.php: db.php
    
    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: –
    Order datastore: WC_Order_Data_Store_CPT
    
    WC Pages
    
    Shop base: #3711 - /shop/
    Cart: #3697 - /cart-2/
    Checkout: #3698 - /checkout-2/
    My account: #3699 - /my-account/
    Terms and conditions: #4471 - /terms-and-conditions/
    
    Theme
    
    Name: THE DUCKHORN SHOP
    Version: 1.0.0
    Author URL: https://www.redbridgeclothing.com
    Child Theme: ?</img>
    Parent Theme Name: Astra
    Parent Theme Version: 4.1.3
    Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
    WooCommerce Support: ?</img>
    
    Templates
    
    Overrides: –
    
    Admin
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    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: block-editor-feature-enabled
    minified-js
    new-product-management-experience
    product-variation-management
    settings
    
    Daily Cron: ?</img> Not scheduled
    Options: ?</img>
    Notes: 138
    Onboarding: completed
    
    Action Scheduler
    
    Complete: 120
    Oldest: 2023-03-28 16:05:41 +0000
    Newest: 2023-04-27 22:45:48 +0000
    
    Failed: 349
    Oldest: 2022-11-12 01:40:10 +0000
    Newest: 2023-04-26 18:08:57 +0000
    
    Pending: 6
    Oldest: 2023-04-28 15:12:40 +0000
    Newest: 2023-05-02 19:17:32 +0000
    
    Status report information
    
    Generated at: 2023-04-27 22:47:56 +00:00
    `

    @tabaraksiyal this issue is finally due to be fixed in the next minor release of WooCommerce ie version 7.7, so you can either wait until this is released or go to wp-content\plugins\woocommerce\src\Admin\API\Reports\Customers\DataStore.php line 750 (assuming you have version 7.6.1 of WooCommerce ) and replace the line with

    'date_registered' => $customer->get_date_created( 'edit' ) ? $customer->get_date_created( 'edit' )->date( TimeInterval::$sql_datetime_format ) : null,

    You can access this file also via the Plugin Editor in WordPress. If you do not know how to do this, you may be best to wait until the fix is released.

    All the best

    Janette

    • This reply was modified 1 year, 6 months ago by jtowell.

    I cured this error with the fix towards the top of this page. On updating to WooCommerce 7.6.1 (which is supposed to fix this issue) the issue reoccurs:

    Fatal error: Uncaught Error: Call to a member function date() on null in /home/customer/www/intwoodfarm.co.uk/public_html/wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php:750 Stack trace: #0 /home/customer/www/intwoodfarm.co.uk/public_html/wp-includes/class-wp-hook.php(310): Automattic\WooCommerce\Admin\API\Reports\Customers\DataStore::update_registered_customer(445) #1 /home/customer/www/intwoodfarm.co.uk/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #2 /home/customer/www/intwoodfarm.co.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/customer/www/intwoodfarm.co.uk/public_html/wp-includes/user.php(2461): do_action(‘profile_update’, 445, Object(WP_User), Array) #4 /home/customer/www/intwoodfarm.co.uk/public_html/wp-includes/user.php(2582): wp_insert_user(Array) #5 /home/customer/www/intwoodfarm.co.uk/public_html/wp-admin/includes/user.php(233): wp_update_user(Array) #6 /home/customer/www/intwoodfarm.co.uk/public_html/wp-admin/u in?/home/customer/www/intwoodfarm.co.uk/public_html/wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php?on line?750

    Of course, using the previous fix now doesn’t work!

    Could you look into and advise please.

    @markseton I am not sure what made you think that the issue is meant to be fixed in WooCommerce 7.6.1, but it is actually WooCommerce 7.7.0 which is yet to be released that the issue is currently scheduled to be released in. You can follow its progress on GitHub https://github.com/woocommerce/woocommerce/pull/37907

    This is the fix that resulted from me raising the issue on GitHub ie https://github.com/woocommerce/woocommerce/issues/35752

    My experience is the fix does still work, it is just that the line number effected has changed to line 750 as reported in your error. I continue to use this fix on systems every time a WooCommerce update is released and will do so until WooCommerce 7.7 is eventually released. It appears that WooCommerce 7.7 is currently at Beta 2 and definitely includes the fix. It also appears that this is scheduled for release on 9th May according to the following WooCommerce post https://developer.woocommerce.com/2023/04/26/woocommerce-7-7-beta-2-released/

    Hopefully this will finally be an end to this issue.

    Janette

    PS. I am in no way affiliated with WooCommerce, I just happened to be the person that raised the issue on GitHub hoping to get it fixed. I never expected the process of getting it fixed to take over 5 months.

    Is this issue being resolved?

    I have a site that does the same thing. Every time a user tries to reset their password they get a critical error.

    Applying the fix above resolves the issue until Woo updates again.

    $customer->get_date_created( ‘edit’ ) ? $customer->get_date_created( ‘edit’ )->date( TimeInterval::$sql_datetime_format ) : null,

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hi @alanwpeasy ,

    Glad to hear that the temporary fix is working for you in the meantime ??

    Since this is a?reported bug on GitHub, our developers are aware of this and the fix is to be included in WooCommerce 7.7, as @jtowell has mentioned.

    Cheers!

    Thanks all…I’ve been able to reapply the temporary fix to my web site again so all OK there.

    @jtowell I thought it was being included on WooCommerce 7.6.1 because it shows as resolved on this post so I assumed it was actually resolved…not waiting to be resolved. I now know where to check for that information so thanks for that.

    All the best

    Mark

    The replacement that was suggested by trepidation.co.uk (@trepidationcouk) on November 16, 2022 at 10:22 am has worked perfectly for me.

    My setup has he following info:

    WordPress 6.2
    StoreFront 4.2
    WooCommerce ver. 7.6.1
    PHP ver. 7.4.33

    Thanks a lot!

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘PHP Fatal error – Uncaught Error: Call to a member function date() on null’ is closed to new replies.