• Resolved axiom28

    (@axiom28)


    Hello All

    I really do hope I can get some help here. I have a client with a brick and mortar shop and an online shop, he needed a POS system (point of sale) that would work with WooCommerce. We eventually went for a relatively new product Connect POS. They do seem to have a good track record though.
    Everything works except for one thing, it synchronises all the products but does not synchronise the customer records. I spoke to their support team who indicated there is something not right in WooCommerce here is the code they sent me:

    2023-04-04T09:15:08+00:00 CRITICAL Uncaught Error: Call to a member function getTimestamp() on null in /home/yanheal/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-customers-v2-controller.php:58
    Stack trace:
    #0 /home/yanheal/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-customers-controller.php(37): WC_REST_Customers_V2_Controller->get_formatted_item_data_core()
    #1 /home/yanheal/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-customers-v2-controller.php(96): WC_REST_Customers_Controller->get_formatted_item_data()
    #2 /home/yanheal/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php(276): WC_REST_Customers_V2_Controller->prepare_item_for_response()
    #3 /home/yanheal/public_html/wp-includes/rest-api/class-wp-rest-server.php(1181): WC_REST_Customers_V1_Controller->get_items()
    #4 /home/yanheal/public_html/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request()
    #5 /home/yanheal/public_html/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch()
    #6 /home/yanheal/public_html/wp-includes/rest-api.php(410): WP_REST_Server->serve_request()
    #7 /home/yanheal/public_html/wp-includes/class-wp-hook.php(308): rest_api_loaded()
    #8 /home/yanheal/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #9 /home/yanheal/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()
    #10 /home/yanheal/public_html/wp-includes/class-wp.php(399): do_action_ref_array()
    #11 /home/yanheal/public_html/wp-includes/class-wp.php(780): WP->parse_request()
    #12 /home/yanheal/public_html/wp-includes/functions.php(1334): WP->main()
    #13 /home/yanheal/public_html/wp-blog-header.php(16): wp()
    #14 /home/yanheal/public_html/index.php(17): require('/home/yanheal/p...')
    #15 {main}
    thrown in /home/yanheal/public_html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-customers-v2-controller.php on line 58<code>
    
    

    My problem now is how do I fix it so that it works like it should?
    regards
    Ian Alport

Viewing 4 replies - 1 through 4 (of 4 total)
  • Saif

    (@babylon1999)

    Hello @axiom28,

    I believe this is related to the following report: https://github.com/woocommerce/woocommerce/issues/35752

    Are you comfortable navigating a MySQL database? If so, please make sure to create a full backup of your site and follow these steps:

    1. Visit your database and look for the wp_users table associated with your account.
    2. If your user account displays the following data: user_registered 000-00-00 00:00:00, proceed with the steps below:

      a. Temporarily deactivate the WooCommerce plugin.
      b. Return to your database and update the date and time of your registration, for example 2023-03-18 18:32:29
      c. Save your changes.

    If you’re not familiar with databases, we recommend not proceeding with these steps.

    Alternatively, you can try the workaround mentioned here.

    At the time being, we don’t have an estimate on when will this be fixed as bug reports are reviewed based on a few criteria, but rest assured the team is looking into it.

    Hope this helps!

    Thread Starter axiom28

    (@axiom28)

    Hello

    Thank you for your response, I did try the fix by editing the DataStore.php file in WooCommerce, unfortunately it didn’t fix the problem. I saw that some people have had success with this fix, unfortunately I did not have any luck with it ??
    Is there anything else I can try?

    Ian

    Saif

    (@babylon1999)

    Thank you for your response, I did try the fix by editing the DataStore.php file in WooCommerce, unfortunately it didn’t fix the problem. I saw that some people have had success with this fix, unfortunately I did not have any luck with it ??
    Is there anything else I can try?

    Sorry to hear that didn’t help, the suggestions in my previous reply were the only workarounds I found.

    I will try asking the team to see whether an update to the GitHub thread is possible but as mentioned previously, bug reports are reviewed on multiple criteria so it may take some time before a fix is released.

    Cheers!

    Hello,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WooCommerce and POS issue’ is closed to new replies.