• Resolved WikidCool

    (@wikidcool)


    My clients get a blank screen with “There has been a critical error on this website” when navigating to it, and if you refresh the browser, then the site shows.

    The logs show a PHP 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/hfbykqp/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php:1353
    Stack trace:
    #0 /home/hfbykqp/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php(129): wc_get_customer_default_location()
    #1 /home/hfbykqp/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/hfbykqp/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Data_Store_Session->read(Object(WC_Customer))
    #3 /home/hfbykqp/public_html/wp-content/plugins/woocommerce/includes/class-wc-customer.php(125): WC_Data_Store->read(Object(WC_Customer))
    #4 /home/hfbykqp/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(840): WC_Customer->__construct(0, true)
    #5 /home/hfbykqp/public_html/wp-content/plug in /home/hfbykqp/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1353

    It was working fine with WooCommerce ver. 6.9.4

    This is a live site and I’m losing customers, so any help will be greatly appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error: wc-core-functions.php:1353’ is closed to new replies.