{"id":15973484,"date":"2022-09-02T11:02:56","date_gmt":"2022-09-02T11:02:56","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/card-emptys-after-login\/"},"modified":"2022-09-02T11:02:56","modified_gmt":"2022-09-02T11:02:56","slug":"card-emptys-after-login","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/card-emptys-after-login\/","title":{"rendered":"Card empty&#8217;s after login"},"content":{"rendered":"<p>We discorded recently that after add item to card and then login the card is empty again. <\/p>\n<p>Action Taken<\/p>\n<p>&#8211; We see this on the Elementor theme and also on Storefront.<br \/>\n&#8211; disabled all non essential plugins and issue and still exist<br \/>\n&#8211; removed all custom code, issue remains<br \/>\n&#8211; all plugin are up 2 date<\/p>\n<p>Enabled debug mode and see below fatal error in the logs:<\/p>\n<pre><code>PHP Fatal error Uncaught Error: Call to undefined function wc_empty_cart() in \/wp-content\/plugins\/woocommerce\/includes\/class-wc-session-handler.php:372\n\nStack trace:\n\n#0 \/wp-content\/plugins\/woocommerce\/includes\/class-wc-session-handler.php(363): WC_Session_Handler-&gt;forget_session()\n#1 \/wp-content\/plugins\/woocommerce\/includes\/class-wc-session-handler.php(99): WC_Session_Handler-&gt;destroy_session()\n#2 \/wp-content\/plugins\/woocommerce\/includes\/class-wc-session-handler.php(71): WC_Session_Handler-&gt;init_session_cookie()\n#3 \/wp-content\/plugins\/woocommerce\/includes\/class-woocommerce.php(852): WC_Session_Handler-&gt;init()\n#4 \/wp-content\/plugins\/woocommerce-payments\/includes\/multi-currency\/MultiCurrency.php(916): WooCommerce-&gt;initialize_session()\n#5 \/ in \/wp-content\/plugins\/woocommerce\/includes\/class-wc-session-handler.php on line 372<\/code><\/pre>\n<p>What is happening and how is there a way to resolve it?<\/p>\n","protected":false},"template":"","class_list":["post-15973484","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15973484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15973484\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15973484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}