• Resolved Marc

    (@kiwimarc)


    When I try to update users backend i get following error:

    ****/wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php. Fejlbesked: Uncaught Error: Call to a member function date() on null in ****/wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php:738
    Stack trace:
    #0 ***/wp-includes/class-wp-hook.php(308): Automattic\WooCommerce\Admin\API\Reports\Customers\DataStore::update_registered_customer(98)
    #1 ***m/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #2 ***wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 ***m/wp-admin/user-edit.php(154): do_action('edit_user_profi...', 98)
    #4 {main}
      thrown

    WordPress-version 6.1
    Active Theme: Storefront (version 4.1.3)
    plugin: WooCommerce (version 7.1.0)
    PHP version 7.4.33

Viewing 1 replies (of 1 total)
  • Thread Starter Marc

    (@kiwimarc)

    I found the problem at line 738 in datastore:
    'date_registered' => $customer->get_date_created( 'edit' )->date( TimeInterval::$sql_datetime_format )

    This cant handle if a user user_registered date is set to nul

Viewing 1 replies (of 1 total)
  • The topic ‘Users cant be updated backend’ is closed to new replies.