• Resolved ouzifeng

    (@ouzifeng)


    Hi,

    We are trying to pull product API data from https://www.cwfishingsupplies.co.uk via Woocommerce’s API (running latest version as of today 22/07/2020)

    Legacy API is ticked
    Have deactivated all plugins

    Error seems to be coming from within WooCommerce itself, here is the log:

    2020-06-21T20:12:33+00:00 CRITICAL Uncaught Error: Call to a member function get() on null in /var/www/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php:96
    Stack trace:
    #0 /var/www/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Data_Store_Session->read(Object(WC_Customer))
    #1 /var/www/wp-content/plugins/woocommerce/includes/class-wc-customer.php(116): WC_Data_Store->read(Object(WC_Customer))
    #2 /var/www/wp-content/plugins/woocommerce/includes/class-wc-cache-helper.php(130): WC_Customer->__construct(0, true)
    #3 /var/www/wp-content/plugins/woocommerce/includes/class-wc-cache-helper.php(161): WC_Cache_Helper::geolocation_ajax_get_location_hash()
    #4 /var/www/wp-includes/class-wp-hook.php(287): WC_Cache_Helper::geolocation_ajax_redirect(”)
    #5 /var/www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #7 /var/www/wp-includes/template-loader.php(13): do_action(‘template_redire…’)
    #8 in /var/www/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php on line 96

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @ouzifeng!

    This is usually due to a theme or plugin conflict. I know you’ve already disabled your plugins, but could you also switch to another default WordPress theme, like Storefront, to see if the issue exists there?

    Additionally, have you integrated the MaxMind Geolocation, and if so, what settings do you have in place?

    Cheers!

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @ouzifeng

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

    Thread Starter ouzifeng

    (@ouzifeng)

    Hi,

    Apologies for the late reply, it appears I didn’t have automated email followups set. Will try the suggested solution and relay to geo location settings

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

The topic ‘critical error help’ is closed to new replies.