• Resolved liv0n

    (@liv0n)


    Good day! A critical error occurred in woocommerce, due to which the text in the description fields turned white, and half of the functionality for adding a product also does not work.
    Did a debug, result:

    Fatal error: Uncaught Error: Call to a member function get() on null in /home/../public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php:96 Stack trace: #0 /home/../public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Data_Store_Session->read(Object(WC_Customer)) #1 /home/../public_html/wp-content/plugins/woocommerce/includes/class-wc-customer.php(116): WC_Data_Store->read(Object(WC_Customer)) #2 /home/../public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1227): WC_Customer->__construct(1, true) #3 /home/../public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(209): WC_Checkout->get_value(‘billing_country’) #4 /home/../public_html/wp-content/themes/urna/inc/vendors/woocommerce/wc-single-functions.php(864): WC_Checkout->get_checkout_fields() #5 in /home/../public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php on line 96

    The site has encountered a critical error. Please check your admin mail inbox for further instructions.

    Everything is fine on all other pages of the admin panel and site.

Viewing 1 replies (of 1 total)
  • Hi there @liv0n!

    Thanks for reporting this. It’s been reported by others and the bug report was created: https://github.com/woocommerce/woocommerce/issues/28582

    The patch will be implemented in WooCommerce 5.0 which is scheduled for February 9. In the meanwhile, you can use the workaround offered in this comment.

    I hope that’s helpful and points you in the right direction. I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘A critical error’ is closed to new replies.